|
|
A262769
|
|
Integers k such that the concatenation of 2^k and k is prime.
|
|
1
|
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
First three primes: 83, 838860823, 922337203685477580863.
|
|
LINKS
|
|
|
EXAMPLE
|
For k = 23 we have 2^23 and 23 equal to 8388608 and 23, respectively, and 838860823 is a prime number.
|
|
MATHEMATICA
|
Select[Range@ 5000, PrimeQ[2^# * 10^IntegerLength[#] + #] &] (* Giovanni Resta, Apr 08 2016 *)
|
|
PROG
|
(Python)
from sympy import isprime
def afind(limit):
k, twok = 0, 1
while k <= limit:
if isprime(int(str(twok) + str(k))): print(k, end = ", ")
k, twok = k+1, twok*2
(PARI) isok(k) = isprime(eval(Str(2^k, k))); \\ Michel Marcus, Mar 23 2021
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,more
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|