Sha256: ec19ba1d654061a1ad12c7b070b75336b7c48f17da25a3f4f7399510a1823f4f

Contents?: true

Size: 381 Bytes

Versions: 2

Compression:

Stored size: 381 Bytes

Contents

#ifndef H_PRIME_GEN
#define H_PRIME_GEN
int * primes(int n);

//Generation of primes is currently time-prohibitive when generating up to large maximums. 
//This should be acceptable for prime factorization because although naive the algorithm is 
//somewhat optimized to detect relatively large prime factors.
int * primes_upto(int max);
int * prime_factors(int n);
#endif

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
congruence_solver-0.3.1 ext/congruence_solver/prime_gen.h
congruence_solver-0.3.0 ext/congruence_solver/prime_gen.h