OFFSET
1,1
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..10000
EXAMPLE
The prime factors of 51 are 3 and 17 and their concatenation 317 is prime, so 51 belongs to the sequence.
MAPLE
q:= n-> isprime(parse(cat(sort(map(i-> i[1], ifactors(n)[2]))[]))):
select(q, [$2..222])[]; # Alois P. Heinz, Mar 27 2024
MATHEMATICA
Reap[Do[If[PrimeQ[#], Sow[n]] &[FromDigits[Join @@ Map[IntegerDigits, FactorInteger[n][[All, 1]] ] ] ], {n, 120}]][[-1, 1]] (* Michael De Vlieger, Mar 27 2024 *)
PROG
(Python)
def a(n):
b, s = bin(n)[2:], str(n)
return int("".join(d for i, d in enumerate(s) if b[i]=="1"))
print([a(n) for n in range(1, 81)]) # Michael S. Branicky, Mar 27 2024
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Joseph L. Pe, Mar 16 2002
EXTENSIONS
Missing 4 inserted and more terms from Sean A. Irvine, Mar 27 2024
STATUS
approved