Effective implementation of algorithms (Master Thesis)
Effective and error-free implementation of algorithms
math::primes::PrimesBasic Class Reference

#include <primes_basic.h>

List of all members.

Public Types

typedef long long int BaseType

Static Public Member Functions

static bool isPrime (BaseType p)

Detailed Description

Primality testing using trial division up to square root


Member Typedef Documentation

typedef long long int math::primes::PrimesBasic::BaseType

Basic type for all computations


Member Function Documentation

static bool math::primes::PrimesBasic::isPrime ( BaseType  p) [inline, static]

Checks whether a number is a prime number.

Parameters:
pnumber to test
Returns:
true iff p is a prime

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines