Prime numbers p for which the sum of primes less than or equal to p is prime: Difference between revisions
Prime numbers p for which the sum of primes less than or equal to p is prime (view source)
Revision as of 16:41, 24 April 2023
, 1 year agoChanged "collect(newSeq):" to "collect:" as "newSeq" is no longer needed.
Drkameleon (talk | contribs) (added Arturo) |
m (Changed "collect(newSeq):" to "collect:" as "newSeq" is no longer needed.) |
||
Line 372:
template isPrime(n: int): bool = not composite[n]
let primes = collect
for n in 2..N:
if n.isPrime: n
|