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

%I #12 Jul 29 2021 07:25:36

%S 1,5,19,22,26,29,32,35,37,38,44,46,52,56,59,61,65,67,68,70,71,77,82,

%T 86,89,94,95,109,112,116,133,137,140,146,151,155,160,172,181,187,190,

%U 194,197,203,209,211,212,218,221,229,245,253,254,263,265,281,286,292

%N Numbers k such that k prefixed by '6' and followed by '9' is a prime.

%t Select[Range@300,PrimeQ@FromDigits@Flatten[{6,IntegerDigits@#,9}]&] (* _Giorgos Kalogeropoulos_, Jul 28 2021 *)

%o (Python)

%o from sympy import isprime

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

%o print(list(filter(ok, range(293)))) # _Michael S. Branicky_, Jul 28 2021

%Y Subsequence of A001651 (not divisible by 3).

%K nonn,base

%O 1,2

%A _Patrick De Geest_, May 15 1998

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 April 24 20:08 EDT 2024. Contains 371963 sequences. (Running on oeis4.)