Anonymous user
Ramanujan primes: Difference between revisions
Added missing test in previous modification.
(Some modifications in function "ramanujanPrime".) |
(Added missing test in previous modification.) |
||
Line 410:
proc ramanujanPrime(pi: PrimeCounter; n: int): int =
if n == 1: return 2
var max = ramanujanMax(n)
if (max and 1) == 1: dec max
|