Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A137625
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A137625 First prime in runs where p+4 is semiprime (runs are k=1,2,3,...). +0
4
5, 29, 173, 709, 1741, 8297, 8297, 19213, 175229, 175229 (list; graph; listen)
OFFSET

1,1

COMMENT

Suggested by Carlos Rivera's Puzzle 429 which asks for runs where p+2 is biprime

FORMULA

Find a run of primes where p+4 is semiprime

EXAMPLE

a(2)=29 because this is the first prime in a run of 2 where p+4 is semiprime (3*11)

PROGRAM

UBASIC: 10 'p+4 is biprime 20 N=1 30 A=3:S=sqrt(N) 40 B=N\A: if B*A=N then N=N+2:goto 30 50 A=A+2: if A<=S then 40 60 C=C+1:O=N+4:D=prmdiv(O):E=O\D 70 if E<>prmdiv(E) or E=1 then C=0:goto 90 80 print C; N; D; E; O: if C>=10 then stop 90 N=N+2:goto 30

CROSSREFS

Cf. A001358 A137626 A137627 A137628.

Sequence in context: A141814 A122370 A088349 this_sequence A083066 A139174 A081336

Adjacent sequences: A137622 A137623 A137624 this_sequence A137626 A137627 A137628

KEYWORD

easy,more,nonn

AUTHOR

Enoch Haga (Enokh(AT)comcast.net), Jan 30 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 3 01:16 EST 2008. Contains 151161 sequences.


AT&T Labs Research