RosettaCodeData/Task/Long-primes/Mathematica/long-primes.math

4 lines
132 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
lPrimes[n_] := Select[Range[2, n], Length[RealDigits[1/#][[1, 1]]] == # - 1 &];
lPrimes[500]
Length /@ lPrimes /@ ( 250*2^Range[8])