HP Forums
(40gs & 40G) OEIS A014085 Prime Count between N^2 & (N+1)^2 - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Software Libraries (/forum-10.html)
+--- Forum: General Software Library (/forum-13.html)
+--- Thread: (40gs & 40G) OEIS A014085 Prime Count between N^2 & (N+1)^2 (/thread-9045.html)



(40gs & 40G) OEIS A014085 Prime Count between N^2 & (N+1)^2 - Gerald H - 09-11-2017 05:30 PM

The programme inserts symbolics in the Sequence App to produce the series

https://oeis.org/A014085

NB OEIS starts the series at zero, the Sequence App starts at one, so values are offset by one.

Code:
RECURSE(U,Σ(X=(N-1)^2,N^2,IFTE(ISPRIME?(X),1,0)),0,2)►U1(N):
CHECK 1: