|
Search: id:A146758
|
|
| |
| |
|
|
OFFSET
|
1,1
|
|
|
EXAMPLE
|
A(2)=97 because 97 is the 15th and last prime difference under 10^2.
|
|
PROGRAM
|
(Other) UBASIC: 10 'sq less pr are prime 20 N=1:O=1:C=1 30 A=3:S=sqrt(N):if N>10^3 then print N, C-1:stop 40 B=N\A 50 if B*A=N then 100 60 A=A+2 70 if A<=S then 40 80 R=O^2:Q=R-N 90 if N<R and N=prmdiv(N) and Q=prmdiv(Q) then if Q>1 print R; N; Q; C:N=N+2:C=C+1:goto 30 100 N=N+2:if N<R then 30:else O=O+1:goto 80
|
|
CROSSREFS
|
A146757 A146759 A146760
Sequence in context: A030540 A071361 A007810 this_sequence A114019 A127892 A125590
Adjacent sequences: A146755 A146756 A146757 this_sequence A146759 A146760 A146761
|
|
KEYWORD
|
easy,more,nonn
|
|
AUTHOR
|
Enoch Haga (Enokh(AT)comcast.net), Nov 02 2008
|
|
|
Search completed in 0.002 seconds
|