Cousin primes: Difference between revisions
Content added Content deleted
m (Added a general comment.) |
|||
Line 961: | Line 961: | ||
=={{header|Nim}}== |
=={{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 |
<lang Nim>import sets, strutils, sugar |
||