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.

A228198 Smallest of five consecutive primes whose sum is not a prime.

Original entry on oeis.org

2, 3, 17, 23, 37, 41, 47, 61, 71, 83, 89, 97, 101, 103, 131, 139, 167, 173, 181, 193, 197, 199, 227, 233, 239, 241, 251, 257, 271, 277, 281, 283, 293, 313, 317, 331, 337, 347, 367, 373, 389, 397, 421, 431, 439, 457, 463, 487, 491, 499, 503, 509, 547, 563, 587, 593
Offset: 1

Views

Author

Vincenzo Librandi, Aug 20 2013

Keywords

Examples

			47 is in the sequence because 47+53+59+61+67 = 287 and 287 is not a prime.
		

Crossrefs

Programs

  • Magma
    [NthPrime(n): n in [1..120] | not IsPrime(&+[NthPrime(n+s): s in [0..4]])];
  • Mathematica
    Transpose[Select[Partition[Prime[Range[150]], 5, 1], ! PrimeQ[Total[#]] &]][[1]]
    Prime[Select[Range[150], ! PrimeQ[Sum[Prime[# + i], {i, 0, 4}]] &]] (* Bruno Berselli, Aug 21 2013 *)