Jump to content

Primality by Wilson's theorem: Difference between revisions

m
→‎{{header|Factor}}: fix off-by-one error
(→‎{{header|Go}}: Now generates 1000th to 1015th primes as well to keep Perl 6 company.)
m (→‎{{header|Factor}}: fix off-by-one error)
Line 35:
 
"1000th through 1015th primes:" print
16 primes 1000999 [ cdr ] times ltake list>array
[ pprint bl ] each nl</lang>
{{out}}
Line 66:
 
1000th through 1015th primes:
7919 7927 7933 7937 7949 7951 7963 7993 8009 8011 8017 8039 8053 8059 8069 8081 8087
</pre>
 
1,827

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.