cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A160359 Primes that are partial sums of squares of the odd primes.

This page as a plain text file.
%I A160359 #14 May 13 2024 15:36:23
%S A160359 83,373,2393,4723,56383,122701,1789391,1987849,2706679,7287991,
%T A160359 27833021,41765519,43570537,55600477,62283451,67053359,104720809,
%U A160359 122353547,204330311,347756707,450504547,540649093,677774533,715849843,839886301
%N A160359 Primes that are partial sums of squares of the odd primes.
%C A160359 There is necessarily an odd number of terms in the sum a(n) = 3^2+5^2+...+p(k)^2, i.e. the index k=A160358(n)+1 of the last prime in this sum is even.
%H A160359 Robert Israel, <a href="/A160359/b160359.txt">Table of n, a(n) for n = 1..10000</a>
%F A160359 Equals A000040 intersect A133547.
%p A160359 P:= select(isprime,[seq(i,i=3..10000,2)]):
%p A160359 S:= ListTools:-PartialSums(map(`^`,P,2)):
%p A160359 select(isprime,S); # _Robert Israel_, May 13 2024
%t A160359 Select[Accumulate[Prime[Range[2,400]]^2],PrimeQ] (* _Harvey P. Dale_, Jul 17 2021 *)
%o A160359 (PARI) s=0; forprime( p=3,9999, isprime(s+=p^2) & print1(s","))
%Y A160359 Cf. A098562, A133547.
%K A160359 nonn
%O A160359 1,1
%A A160359 _M. F. Hasler_, May 18 2009