RosettaCodeData/Task/Truncatable-primes/MATLAB/truncatable-primes-2.m

4 lines
148 B
Mathematica
Raw Permalink Normal View History

2013-04-11 01:07:29 -07:00
>> largestTruncatablePrimes(1e6)
998443 is the largest left truncatable prime <= 1000000.
739399 is the largest right truncatable prime <= 1000000.