OFFSET
1,1
COMMENTS
Primes p such that k + sopfr(k) = p^2 has at least one solution, where sopfr(k) = A001414(k) is the sum of prime factors of k with multiplicity.
LINKS
Robert Israel, Table of n, a(n) for n = 1..1065
EXAMPLE
MAPLE
N:= 2*10^8: # for terms <= sqrt(N)
P:= {}:
for x from 1 to N do
v:= x + add(s[1]*s[2], s=ifactors(x)[2]);
if v <= N and issqr(v) then
p:= sqrt(v); if isprime(p) then P:= P union {p} fi;
fi;
od:
sort(convert(P, list));
CROSSREFS
KEYWORD
nonn
AUTHOR
Will Gosnell and Robert Israel, May 26 2026
STATUS
approved
