Anonymous user
Cousin primes: Difference between revisions
m
Added a general comment.
m (Added a general comment.) |
|||
Line 961:
=={{header|Nim}}==
We use a simple primality test (which is in fact executed at compile time). For large values of N, it would be better to use a sieve of Erathostenes and to replace the constants “PrimeList” and “PrimeSet” by read-only variables.
<lang Nim>import sets, strutils, sugar
|