OFFSET
1,1
FORMULA
Terms in this sequence are from A144831 iff the distance from nxtprm n^2 to (n+1)^2 is prime.
EXAMPLE
a(2)=5 because 3^2=9 and 4^2=16. Nxtprm(3^2)=11 and 16-11=5, a prime.
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Enoch Haga, Sep 22 2008
STATUS
approved