OFFSET
1,1
COMMENTS
If we allow 1, we get sequence A167535.
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
449 is a prime that is a concatenation of two squares: 4 and 49.
MAPLE
zcat:= proc(a, b) 10^(1+ilog10(b))*a+b end proc:
select(t -> t <= 10^5 and isprime(t), {seq(seq(zcat(a^2, b^2), a=2..100), b=3..1000, 2)}); # Robert Israel, Jun 17 2021
MATHEMATICA
Take[Select[Union[Flatten[Table[FromDigits[Join[IntegerDigits[n^2], IntegerDigits[k^2]]], {n, 2, 300}, {k, 2, 300}]]], PrimeQ[#] &], 60]
PROG
(Python)
from sympy import isprime
def aupto(lim):
s = list(i**2 for i in range(2, int(lim**(1/2))+2))
t = set(int(str(a)+str(b)) for a in s for b in s)
return sorted(filter(isprime, filter(lambda x: x<=lim, t)))
print(aupto(49000)) # Michael S. Branicky, Jun 13 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Tanya Khovanova, Jun 13 2021
STATUS
approved