1
0
Fork 0
projecteuler/primes.h

7 lines
210 B
C
Raw Normal View History

2018-08-27 06:38:09 +00:00
#include <stdbool.h>
bool isPrime(long n);
bool isPrimeMem(long n, long* primes);
long listOfPrimes(long n, long** primes_ptr, bool** primesTable_ptr);
void sieveOfEratosthenes(int n, bool** primesTable_ptr);