Smarandache prime-digital sequence: Difference between revisions
m
Phix/mpfr
m (Minor edit to C++ code) |
m (Phix/mpfr) |
||
Line 1,127:
=={{header|Phix}}==
{{libheader|Phix/mpfr}}
Optimised. As noted on the Factor entry, candidates>10 must end in 3 or 7 (since they would not be prime
if they ended in 2 or 5), which we efficiently achieve by alternately adding {4,-4}. Digits to the left
|