cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A260907 Numbers n such that prime(n) + prime(n+1) + prime(n+2) is not a prime.

Original entry on oeis.org

1, 2, 6, 12, 14, 15, 17, 21, 24, 25, 27, 28, 30, 31, 32, 33, 36, 39, 40, 41, 42, 43, 44, 46, 48, 49, 51, 52, 53, 54, 55, 56, 57, 59, 63, 65, 66, 67, 71, 72, 73, 74, 76, 78, 81, 82, 84, 85, 86, 89, 92, 93, 96, 98, 99, 100, 102, 103, 104, 105, 106, 107, 108
Offset: 1

Views

Author

Vincenzo Librandi, Nov 18 2015

Keywords

Comments

Complement of A072225.

Examples

			6 is in the sequence because prime(6) + prime(7) + prime(8) = 13 + 17 + 19 = 49 is not a prime.
		

Crossrefs

Cf. A000040, A072225, A174742 (associated primes).

Programs

  • Magma
    [n: n in [1..200] | not IsPrime(NthPrime(n) + NthPrime(n+1) + NthPrime(n+2))];
    
  • Mathematica
    Select[Range[200], !PrimeQ[Prime[#] + Prime[# + 1] + Prime[# + 2]] &]
  • PARI
    for(n=1, 1e2, if(!isprime(prime(n)+prime(n+1)+prime(n+2)), print1(n, ", "))) \\ Altug Alkan, Nov 19 2015
    
  • Sage
    [n for n in (1..200) if not is_prime(nth_prime(n) + nth_prime(n+1) + nth_prime(n+2))] # Bruno Berselli, Nov 19 2015