|
Search: id:A145988
|
|
|
| A145988 |
|
Ending prime: first occurrence consecutive runs n to n+1 where p/4=3 |
|
+0 8
|
|
| 3, 11, 751, 227, 919, 13171, 503, 36607, 39703, 183283, 4469131, 6419503, 241771
(list; graph; listen)
|
|
|
OFFSET
|
1,1
|
|
|
COMMENT
|
a(1)=3 is same as a(1) in A055624 because 3 is a single digit number
|
|
REFERENCES
|
Enoch Haga, Exploring Primes on Your PC and the Internet, 1994-2007. Pp. 30-31. ISBN 978-1-885794-24-6
|
|
EXAMPLE
|
a(2)=11 because this is the 2nd prime in the first run of 2 primes where p/4=3
|
|
PROGRAM
|
(Other) UBASIC: 10 'cluster primes 20 C=1 30 input "end #"; L 40 for N=3 to L step 2 50 S=int(sqrt(N)) 60 for A=3 to S step 2 70 B=N/A 80 if int(B)*A=N then cancel for:goto 170 90 next A 100 C=C+1 110 E=N/4:E=int(E):R=N-(4*E) 120 if R=1 then print N; :C1=C1+1:T1=T1+1:print T1 130 if R=3 then T1=0 140 if R=3 then print " "; N; :C3=C3+1:T2=T2+1:print T2 150 if R=1 then T2=0 160 if T1>10 or T2>10 then stop 170 next 180 print "Total primes="; C; :print "Type A"; C1; "Type B"; C3
|
|
CROSSREFS
|
A055623 A054624 A145986 A145989 A145990 A145991 A145992 A145993 A145994
Sequence in context: A097423 A111130 A088579 this_sequence A124984 A034797 A101710
Adjacent sequences: A145985 A145986 A145987 this_sequence A145989 A145990 A145991
|
|
KEYWORD
|
easy,more,nonn
|
|
AUTHOR
|
Enoch Haga (Enokh(AT)comcast.net), Oct 26 2008
|
|
|
Search completed in 0.002 seconds
|