RosettaCodeData/Task/Truncatable-primes/MATLAB/truncatable-primes-2.m
2023-07-01 13:44:08 -04:00

3 lines
148 B
Mathematica

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