Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A130038
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A130038 Even numbers n such that n-7 is prime, but neither n-3 nor n-5 is prime. +0
1
30, 38, 54, 60, 68, 80, 90, 96, 120, 138, 146, 158, 164, 174, 180, 188, 206, 218, 240, 248, 258, 264, 270, 278, 290, 300, 324, 338, 344, 360, 366, 374, 380, 390, 396, 408, 416, 428, 440, 450, 456, 474, 486, 498, 510, 516, 530, 548, 554, 564, 570, 578, 584 (list; graph; listen)
OFFSET

1,1

COMMENT

Even numbers that are the sum of 7 and another prime number, but not the sum of 3 or 5 plus another prime.

EXAMPLE

30-7 is prime but 30-3 and 30-5 are not. Therefore 30 is in the sequence.

90-7 = 83 is prime, but neither 90-3 = 87 nor 90-5= 85 is prime, hence 90 is a term.

88-7 = 81 is not prime, hence 88 is not in the sequence.

86-7 = 79 is prime and 86-3 = 83 is also prime, hence 86 is not in the sequence.

78-7 = 71 is prime and 78-5 = 73 is also prime, hence 78 is not in the sequence.

MATHEMATICA

Select[2*Range[4, 500], PrimeQ[ # - 7] && ! PrimeQ[ # - 3] && ! PrimeQ[ # - 5] &] - Stefan Steinerberger

PROGRAM

(PARI) {forstep(n=2, 584, 2, if(isprime(n-7)&&!isprime(n-3)&&!isprime(n-5), print1(n, ", ")))} /* Klaus Brockhaus, Jul 25 2007 */

CROSSREFS

Sequence in context: A109426 A167325 A051657 this_sequence A001995 A004433 A025376

Adjacent sequences: A130035 A130036 A130037 this_sequence A130039 A130040 A130041

KEYWORD

nonn

AUTHOR

Anthony W Lawson (anthonylawson67(AT)optusnet.com.au), Jul 24 2007

EXTENSIONS

Edited, corrected and extended by Klaus Brockhaus (klaus-brockhaus(AT)t-online.de) and Stefan Steinerberger (stefan.steinerberger(AT)gmail.com), Jul 24 2007

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 10 12:37 EST 2009. Contains 170569 sequences.


AT&T Labs Research