Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A120640
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A120640 Primes such that their quadruple is not 1 away from a prime number. +0
1
19, 23, 29, 31, 47, 59, 61, 89, 101, 103, 107, 109, 113, 149, 151, 157, 167, 179, 181, 191, 211, 223, 229, 233, 239, 241, 251, 257, 269, 271, 283, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 379, 389, 397, 401, 419, 421, 439, 443, 449, 457, 461, 463 (list; graph; listen)
OFFSET

1,1

COMMENT

This sequence is a variation of the sequence in the reference. However, this sequence should have an infinite number of terms. k=4 in the Pari code.

REFERENCES

R. Crandall and C. Pomerance, Prime Numbers A Computational Perspective, Springer Verlag 2002, p. 49, exercise 1.18.

EXAMPLE

19*4 = 76, which is one away from 75 and 77 both not prime.

PROGRAM

(PARI) primepm3(n, k) = =number of iterations, k = factor { local(x, p1, p2, f1, f2, r); if(k%2, r=2, r=1); for(x=1, n, p1=prime(x); p2=prime(x+1); if(!isprime(p1*k+r)&!isprime(p1*k-r), print1(p1", ") ) ) }

CROSSREFS

Sequence in context: A070299 A100460 A073319 this_sequence A076056 A068654 A019384

Adjacent sequences: A120637 A120638 A120639 this_sequence A120641 A120642 A120643

KEYWORD

easy,nonn

AUTHOR

Cino Hilliard (hillcino368(AT)gmail.com), Aug 17 2006

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 September 6 09:40 EDT 2008. Contains 143480 sequences.


AT&T Labs Research