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