bool isPrime (int n);
bool isPrimeMem (int n, int* primes);
int listOfPrimes (int n, int** primes_ptr, bool** primesTable_ptr);
void sieveOfEratosthenes (int n, bool** primesTable_ptr);