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.

A166561 Primes p such that sum of digits + 1 is prime.

Original entry on oeis.org

2, 11, 13, 19, 31, 37, 73, 79, 97, 101, 103, 109, 127, 163, 181, 211, 271, 277, 307, 349, 367, 433, 439, 457, 499, 523, 541, 547, 613, 619, 631, 673, 691, 709, 727, 769, 787, 811, 853, 859, 877, 907, 967, 1009
Offset: 1

Views

Author

Vincenzo Librandi, Oct 28 2009

Keywords

Examples

			2 belongs to this sequence because 2+1=3 prime; 11 because 1+1+1=3; 127 because 1+2+7+1=11; 1009 because 1+0+0+9+1=11.
		

Crossrefs

Cf. similar sequences listed in A243586.

Programs

  • Magma
    [p: p in PrimesUpTo(1500) | IsPrime(q) where q is 1+(&+Intseq(p))]; // Vincenzo Librandi, Jun 07 2014
  • Mathematica
    Select[Prime[Range[210]], PrimeQ[Plus @@IntegerDigits[#] + 1]&] (* Vincenzo Librandi, Sep 15 2013 *)