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!)
A032731 Numbers k such that k prefixed by '6' and followed by '9' is a prime. 0
1, 5, 19, 22, 26, 29, 32, 35, 37, 38, 44, 46, 52, 56, 59, 61, 65, 67, 68, 70, 71, 77, 82, 86, 89, 94, 95, 109, 112, 116, 133, 137, 140, 146, 151, 155, 160, 172, 181, 187, 190, 194, 197, 203, 209, 211, 212, 218, 221, 229, 245, 253, 254, 263, 265, 281, 286, 292 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
MATHEMATICA
Select[Range@300, PrimeQ@FromDigits@Flatten[{6, IntegerDigits@#, 9}]&] (* Giorgos Kalogeropoulos, Jul 28 2021 *)
PROG
(Python)
from sympy import isprime
def ok(n): return isprime(int('6'+str(n)+'9'))
print(list(filter(ok, range(293)))) # Michael S. Branicky, Jul 28 2021
CROSSREFS
Subsequence of A001651 (not divisible by 3).
Sequence in context: A337401 A338127 A243018 * A275954 A087840 A074229
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 05:16 EDT 2024. Contains 371264 sequences. (Running on oeis4.)