OFFSET
1,1
COMMENTS
Primes in A340771.
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(3) = 373 is a term because 373 is prime and 373 = 3^2 + 5^2 + 7^2 + 11^2 + 13^2 where 3, 5, 6, 11 and 13 are consecutive primes.
MAPLE
N:= 2*10^5: # for terms <= N
PS:= [0, seq(ithprime(i)^2, i=1..numtheory:-pi(floor(sqrt(N))))]:
SPS:= ListTools:-PartialSums(PS):
sort(convert(select(t -> t <= N and isprime(t), {seq(seq(SPS[t]-SPS[s], s=1..t-2), t=2..nops(SPS))}), list);
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert Israel, Oct 09 2024
STATUS
approved