login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A158195 Prime numbers such that sum of digits is even semiprime. 2
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 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Even semiprime = 2*prime.
LINKS
EXAMPLE
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).
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 *)
PROG
(PARI) isok(n) = isprime(n) && (q = sumdigits(n)/2) && (type(q) == "t_INT") && isprime(q); \\ Michel Marcus, Jun 24 2014
CROSSREFS
Sequence in context: A092738 A272382 A115093 * A040092 A079130 A243587
KEYWORD
nonn,base,easy,less
AUTHOR
EXTENSIONS
257 added by R. J. Mathar, Mar 15 2009
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 16:34 EDT 2024. Contains 371961 sequences. (Running on oeis4.)