Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A146758
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A146758 Last prime subtrahend at 10^n in A146757 +0
2
7, 97, 983, 9941, 99839, 999983, 9998239 (list; graph; listen)
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

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified December 11 12:57 EST 2009. Contains 170656 sequences.


AT&T Labs Research