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.

A158195 Prime numbers such that sum of digits is even semiprime.

Original entry on oeis.org

13, 19, 31, 37, 59, 73, 103, 109, 127, 149, 163, 167, 181, 211, 239, 257, 271, 293, 307, 347, 383, 419, 433, 491, 499, 509, 523, 541, 563, 613, 617, 631, 653, 743, 761, 769, 787, 811, 859, 877, 941, 967, 1009, 1021, 1049, 1063, 1117, 1153, 1171, 1193, 1201
Offset: 1

Views

Author

Juri-Stepan Gerasimov, Mar 13 2009

Keywords

Comments

Even semiprime = 2*prime.

Examples

			13(1+3=2*2), 19(1+9=2*5), 31(3+1=2*2), 37(3+7=2*5), 59(5+9=2*7).
		

Crossrefs

Programs

  • Mathematica
    Select[Prime[Range[200]],PrimeQ[Total[IntegerDigits[#]]/2]&] (* Peter J. C. Moses, Jun 05 2014 *)
    Select[Prime[Range[200]],EvenQ[Total[IntegerDigits[#]]]&& PrimeOmega[ Total[ IntegerDigits[ #]]] ==2&] (* Harvey P. Dale, Sep 30 2016 *)
  • PARI
    isok(n) = isprime(n) && (q = sumdigits(n)/2) && (type(q) == "t_INT") && isprime(q); \\ Michel Marcus, Jun 24 2014

Extensions

257 added by R. J. Mathar, Mar 15 2009