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!)
A268111 Integers k such that the concatenation of 2^k and 3^k is prime. 1
0, 1, 3, 7, 8, 21, 23, 33, 51, 88, 96, 227, 287, 1231, 1924, 3035, 3614, 4598, 6112, 10813 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
COMMENTS
First five primes: 11, 23, 827, 1282187, 2566561.
a(21) > 22166. - J.W.L. (Jan) Eerland, Jul 25 2023
LINKS
EXAMPLE
For k = 3 we have 2^3 and 3^3 equal to 8 and 27, respectively, and 827 is a prime number.
MATHEMATICA
Select[Range[0, 100], PrimeQ[FromDigits[Join[IntegerDigits[2^#], IntegerDigits[3^#]]]] &] (* Alonso del Arte, Jan 27 2016 *)
PROG
(PARI) isok(k) = ispseudoprime(eval(Str(2^k, 3^k))); \\ Michel Marcus, Jan 26 2016, Sep 08 2021, Jul 15 2023
(Python)
from sympy import isprime
def afind(limit, startk=0):
pow2, pow3 = 2**startk, 3**startk
for k in range(startk, limit+1):
if isprime(int(str(pow2) + str(pow3))): print(k, end=", ")
pow2 *= 2; pow3 *= 3
afind(300) # Michael S. Branicky, Sep 08 2021
CROSSREFS
Sequence in context: A259571 A291212 A125570 * A369920 A244532 A037208
KEYWORD
nonn,base,more
AUTHOR
Emre APARI, Jan 26 2016
EXTENSIONS
a(12)-a(13) from Michel Marcus, Jan 26 2016
a(17)-a(19) from Michael S. Branicky, Sep 08 2021
a(20) from Michael S. Branicky, Apr 04 2023
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 9 15:13 EDT 2024. Contains 372352 sequences. (Running on oeis4.)