%N Smallest prime p_k such that n can be written as a "plus-minus" sum n=sum_(i=1..k)e_i*(p_i)^2 with distinct primes p_i<=p_k, where e_i is 1 or -1.
%C The first terms where this sequence differs from A088934 are n=22,31,52,87,89,98,118,127,...
%e a(22)=13 because 22 can be represented as -13^2+11^2+7^2+5^2-2^2.
%e The corresponding representation with the minimum number of terms is
%e 22=19^2-13^2-11^2-7^2 (A088934(22)=19, A088910(22)=4 terms)
%Y The positions of the records in this sequence are given in A089295. Cf. A088910, A088934.
%A _W. Edwin Clark_ Nov 06 2003