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!)
A032683 Numbers k such that k surrounded by digit '3' is a prime. 4
1, 5, 7, 8, 16, 20, 25, 31, 32, 34, 37, 41, 43, 46, 53, 58, 59, 61, 62, 64, 67, 73, 79, 80, 82, 83, 85, 86, 92, 94, 101, 103, 106, 112, 115, 118, 119, 122, 125, 133, 139, 151, 154, 157, 158, 164, 166, 172, 179, 187, 188, 196, 197, 200, 206, 208, 214, 217 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
MATHEMATICA
Select[Range[250], PrimeQ[FromDigits[Join[{3}, IntegerDigits[#], {3}]]]&] (* Harvey P. Dale, Apr 18 2012 *)
PROG
(Python)
from sympy import isprime
def ok(n): return isprime(int('3' + str(n) + '3'))
print([k for k in range(220) if ok(k)]) # Michael S. Branicky, Sep 04 2022
CROSSREFS
Sequence in context: A171952 A238011 A140237 * A182005 A192285 A192123
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 May 5 21:04 EDT 2024. Contains 372287 sequences. (Running on oeis4.)