Find largest left truncatable prime in a given base: Difference between revisions
Find largest left truncatable prime in a given base (view source)
Revision as of 13:17, 16 May 2020
, 4 years ago→{{header|Phix}}: removed pointless re-test (no speedup tho)
Thundergnat (talk | contribs) m (→{{header|Raku}}: Use a library for primality checking) |
m (→{{header|Phix}}: removed pointless re-test (no speedup tho)) |
||
Line 1,285:
if i>seen_depth
or (i==seen_depth and mpz_cmp(vals[i], answer)>0) then
mpz_set(answer, vals[i])
seen_depth = i
|