OFFSET
1,1
COMMENTS
Analogous to A002620 except primes are substituted for the natural numbers.
FORMULA
Arrange primes in a block spiral formation. a(n) is determined by the point of rotation to allow for continuation of the sequence.
a(n) = prime(A002620(n)+1). - Ya-Ping Lu, Sep 18 2025
EXAMPLE
Spiral begins:
(73)-79--83--89--97-(101)
| |
71 (17)-19--23-(29) etc.
| | |
67 13 (2)-(3) 31
| | | |
61 (11)--7--(5) 37
| |
(59)-53--47--43-(41)
MAPLE
A059428 := proc(n) RETURN(ithprime(1+floor(n^2/4))) end: # Francisco Salinas (franciscodesalinas(AT)hotmail.com), Jan 05 2002
PROG
(Python)
from sympy import prime
def A059428(n): return prime(((n*n)>>2)+1) # Ya-Ping Lu, Sep 18 2025
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Jason Earls, Mar 15 2001
EXTENSIONS
More terms from Larry Reeves (larryr(AT)acm.org), Apr 19 2001
STATUS
approved
