Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A120638
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A120638 Primes such that their triple is not 2 away from a prime number. +0
1
2, 31, 41, 73, 101, 107, 109, 131, 151, 157, 179, 223, 229, 241, 281, 283, 311, 359, 379, 389, 421, 449, 463, 509, 521, 547, 563, 571, 599, 613, 617, 619, 631, 641, 647, 653, 661, 683, 691, 701, 719, 733, 739, 743, 773, 787, 809, 811, 821, 827, 829, 839, 857 (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=2 in the PARI code.

REFERENCES

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

EXAMPLE

31*3 = 93 which is two away from 91 and 95 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: A020896 A042153 A102630 this_sequence A101017 A129900 A105757

Adjacent sequences: A120635 A120636 A120637 this_sequence A120639 A120640 A120641

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 November 27 14:50 EST 2009. Contains 167570 sequences.


AT&T Labs Research