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!)
A032685 Numbers k such that k surrounded by digit '9' is a prime. 8
1, 2, 10, 19, 20, 23, 31, 34, 41, 43, 47, 53, 61, 62, 64, 67, 68, 71, 73, 74, 76, 82, 83, 85, 92, 94, 100, 101, 107, 109, 112, 113, 115, 119, 122, 124, 130, 136, 145, 149, 152, 163, 190, 193, 196, 200, 211, 217, 218, 221, 226, 236, 239, 241, 245 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

LINKS

Harvey P. Dale, Table of n, a(n) for n = 1..1000

MATHEMATICA

Select[Range[300], PrimeQ[FromDigits[Join[{9}, IntegerDigits[#], {9}]]]&] (* Harvey P. Dale, Jul 20 2012 *)

PROG

(Python)

from sympy import isprime

def ok(n): return isprime(int('9' + str(n) + '9'))

print([k for k in range(250) if ok(k)]) # Michael S. Branicky, Sep 04 2022

CROSSREFS

Cf. A032682, A032683, A032684, A032690.

Sequence in context: A330083 A322951 A156446 * A085936 A226179 A030570

Adjacent sequences: A032682 A032683 A032684 * A032686 A032687 A032688

KEYWORD

nonn,base

AUTHOR

Patrick De Geest, May 15 1998

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 March 29 17:51 EDT 2023. Contains 361599 sequences. (Running on oeis4.)