The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A156976 Primes whose last digit is not a prime but all the other digits are primes. 0
29, 31, 59, 71, 79, 229, 239, 251, 271, 331, 359, 379, 521, 571, 739, 751, 2221, 2239, 2251, 2339, 2351, 2371, 2521, 2531, 2539, 2551, 2579, 2729, 2731, 3221, 3229, 3251, 3259, 3271, 3329, 3331, 3359, 3371, 3529, 3539, 3559, 3571, 3739, 3779, 5231, 5279 (list; graph; refs; listen; history; text; internal format)
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
Sequence in context: A132240 A132243 A125523 * A157681 A288615 A158342
KEYWORD
base,nonn
AUTHOR
Parthasarathy Nambi, Feb 19 2009
EXTENSIONS
More terms from Emeric Deutsch, Mar 15 2009
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 4 09:20 EDT 2024. Contains 373092 sequences. (Running on oeis4.)