RosettaCodeData/Task/Wieferich-primes/Factor/wieferich-primes.factor
2023-07-01 13:44:08 -04:00

5 lines
179 B
Factor

USING: io kernel math math.functions math.primes prettyprint
sequences ;
"Wieferich primes less than 5000:" print
5000 primes-upto [ [ 1 - 2^ 1 - ] [ sq divisor? ] bi ] filter .