[go: up one dir, main page]

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”).

Revision History for A157480 (Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing entries 1-10 | older changes
a(n) = least prime p such that p + prime(n) is a square.
(history; published version)
#12 by N. J. A. Sloane at Tue Oct 01 21:35:29 EDT 2013
AUTHOR

_Cino Hilliard (hillcino368(AT)hotmail.com), _, Mar 01 2009

Discussion
Tue Oct 01
21:35
OEIS Server: https://oeis.org/edit/global/1959
#11 by N. J. A. Sloane at Fri Mar 15 00:02:50 EDT 2013
STATUS

editing

approved

#10 by N. J. A. Sloane at Fri Mar 15 00:02:47 EDT 2013
EXTENSIONS

Better definition and Mma program from Zak Seidov, Mar 14 2013

STATUS

approved

editing

#9 by N. J. A. Sloane at Thu Mar 14 23:59:46 EDT 2013
STATUS

editing

approved

#8 by N. J. A. Sloane at Thu Mar 14 23:59:38 EDT 2013
NAME

The differences between the primes and the next squares are a(n) = least prime p such that p + prime(n) is a square.

COMMENTS

It is appropriate to add a counter to the program to ensure a square is found for all primes <= n. Here we set n^2 as the difference upper bound. This appears to be high but with no loss in efficiency since we break out of the loop when the first square is found. This partial listing was generated for primes < 1000. Notice that 1601 would have been missed had we set the difference upper bound to 1000.

Or, least prime p such that p + prime(n) is a square. - Zak Seidov, Mar 14 2013~

EXTENSIONS

Better definition from Zak Seidov, Mar 14 2013

STATUS

proposed

editing

#7 by Zak Seidov at Thu Mar 14 21:47:06 EDT 2013
STATUS

editing

proposed

#6 by Zak Seidov at Thu Mar 14 21:42:13 EDT 2013
COMMENTS

Or, least prime p such that p + prime(n) is a square. - Zak Seidov, Mar 14 2013~

LINKS

Zak Seidov, <a href="/A157480/b157480.txt">Table of n, a(n) for n = 1..10000</a>

MATHEMATICA

Table[p=Prime[n]; b=Ceiling[Sqrt[p]]; While[!PrimeQ[x=b^2-p], b++]; x, {n, 72}]

STATUS

approved

editing

Discussion
Thu Mar 14
21:46
Zak Seidov: I think that the NAME is just wrong(?). Better to use "my" version in COMMENTS. BTW CH's comment may be safely omitted as irrelevant one.  Also PARI code is ineffective.
#5 by Bruno Berselli at Tue Jan 08 04:51:25 EST 2013
STATUS

reviewed

approved

#4 by Jean-François Alcover at Tue Jan 08 04:45:28 EST 2013
STATUS

proposed

reviewed

#3 by Michel Marcus at Tue Jan 08 04:22:53 EST 2013
STATUS

editing

proposed