Truncatable primes: Difference between revisions
m
→{{header|Arturo}}
Drkameleon (talk | contribs) |
Drkameleon (talk | contribs) |
||
Line 191:
}
isTruncatablePrime: @(nums)
MaxLeft: 0
Line 197:
loop [rangeBy 3 1000000 2] @(n){
if [isTruncatablePrime [leftTrunc n]]
if [isTruncatablePrime [rightTrunc n]]
}
print "Max Left-Truncatable Prime found (<1000000): " + MaxLeft
print "Max Right-Truncatable Prime found (<1000000): " + MaxRight</lang>
{{out}}
|