RosettaCodeData/Task/Truncatable-primes/MATLAB/truncatable-primes-2.m
Ingy döt Net 68f8f3e56b all tasks
2013-04-11 01:07:29 -07:00

3 lines
148 B
Mathematica

>> largestTruncatablePrimes(1e6)
998443 is the largest left truncatable prime <= 1000000.
739399 is the largest right truncatable prime <= 1000000.