OFFSET
1,1
COMMENTS
541456 is a term. - Paolo Galliani, Feb 12 2020
EXAMPLE
2 is in the sequence because the concatenation of 3 and 1 is 31, which is prime.
3 is in the sequence because the concatenation of 7 and 3 is 73, which is prime.
5 is not in the sequence because the concatenation of 31 and 15 is 3115 = 5 * 7 * 89.
MATHEMATICA
Select[Range[10^3], PrimeQ@ FromDigits[Join @@ IntegerDigits@ {2^# - 1, 2^(# - 1) - 1}] &] (* Michael De Vlieger, Oct 17 2018 *)
PROG
(PFGW) ABC2 (2^$a-1)*10^len(2^($a-1)-1)+2^($a-1)-1 a: from x to y
(PARI) isok(n) = isprime(eval(concat(Str(2^n-1), Str(2^(n-1)-1)))); \\ Michel Marcus, Mar 27 2018
CROSSREFS
KEYWORD
nonn,base,more
AUTHOR
Paolo Galliani, Mar 27 2018
EXTENSIONS
a(33) from Paolo Galliani, May 02 2018
a(34) from Paolo Galliani, Jun 14 2018
a(35) from Paolo Galliani, Jul 17 2018
a(36)-a(37) from Paolo Galliani, Aug 27 2018
STATUS
approved