login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A106573
Perfect squares which are neither the sum nor the difference of two primes.
12
121, 289, 529, 625, 961, 1681, 2601, 2809, 3481, 4225, 4489, 5329, 6241, 6889, 7225, 7569, 8281, 9025, 9409, 10201, 11881, 12769, 13225, 15625, 16641, 17689, 18769, 19881, 20449, 22201, 22801, 23409, 24649, 25281, 26569, 27225, 27889, 30625
OFFSET
1,1
FORMULA
A106547 with 0's removed.
EXAMPLE
a(2)=289 because it is the second perfect square which is impossible to obtain adding a prime to - or subtracting from - another one. 64 is not in the sequence because 64=67-3, a difference of two primes.
KEYWORD
easy,nonn
AUTHOR
Alexandre Wajnberg, May 09 2005
EXTENSIONS
Corrected and extended by Ray Chandler, May 12 2005
STATUS
approved