OFFSET
1,1
COMMENTS
It is obvious that the last digit must be a 1 or 9. It is also obvious that the digits 0, 4, 6, or 8 cannot occur anywhere in the numbers.
LINKS
Chris Caldwell, The First 1,000 Primes
EXAMPLE
751 is a prime in which the last digit is not a prime but the other digits are primes.
MAPLE
a := proc (n) local n1, n2, n3: n1 := ithprime(n): n2 := convert(n1, base, 10): n3 := convert(convert(floor((1/10)*n1), base, 10), set): if member(n2[1], {1, 9}) = true and `subset`(n3, {2, 3, 5, 7}) = true then n1 else end if end proc: seq(a(n), n = 1 .. 750); # Emeric Deutsch, Mar 15 2009
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Parthasarathy Nambi, Feb 19 2009
EXTENSIONS
More terms from Emeric Deutsch, Mar 15 2009
STATUS
approved