The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A108321 a(n) = n^2 if n^2 is not the difference of two primes; otherwise a(n) = 0. 0
0, 0, 0, 0, 25, 0, 49, 0, 0, 0, 121, 0, 169, 0, 0, 0, 289, 0, 361, 0, 0, 0, 529, 0, 625, 0, 729, 0, 841, 0, 961, 0, 0, 0, 1225, 0, 1369, 0, 0, 0, 1681, 0, 1849 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,5
COMMENTS
This sequence is also n^2 - A106546
LINKS
EXAMPLE
a(4)=0 because the fourth perfect square 16 is the difference between two primes: 19-3. a(5)=25 figures here because the nearest prime greater than 25 is 29 and the difference 29-25 is 4 (an even number >2), thus not a prime; all other greater primes are odd and the difference with 25 will give an even number, thus again not a prime.
CROSSREFS
Sequence in context: A005079 A167624 A181614 * A059062 A179809 A110416
KEYWORD
easy,nonn
AUTHOR
Alexandre Wajnberg, Jun 30 2005
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 26 05:34 EDT 2024. Contains 372807 sequences. (Running on oeis4.)