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!)
A176706 Primes p such that the p-th semiprime divided by the sum of the digits of p is a prime. 1
2, 3, 7, 23, 131, 313, 353, 397, 887, 1307, 1439, 1783, 2003, 2027, 2069, 2111, 2593, 2777, 3541, 4111, 4201, 4889, 5653, 5897, 6421, 6823, 8353, 8447, 9721, 9749, 11159, 11483, 12011, 12073, 12251, 13313, 14323, 14431, 15083, 15131, 15887, 17029 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
131 is a term because the 131st semiprime is 415, the sum of the digits of 131 is 5, and 415/5 = 83, which is prime.
MAPLE
isA001358 := proc(n) numtheory[bigomega](n) = 2 ; end proc:
A001358 := proc(n) option remember ; if n = 1 then return 4 ; else for a from procname(n-1)+1 do if isA001358(a) then return a; end if; end do; end if; end proc:
A007953 := proc(n) add(d, d=convert(n, base, 10)) ; end proc:
isA176706 := proc(n) if isprime(n) then r := A001358(n)/A007953(n) ; if type(r, 'integer') then isprime(r) ; else false; end if; else false; end if; end proc:
for n from 1 to 2000 do p := ithprime(n) ; if isA176706(p) then printf("%d, ", p) ; end if; end do: # R. J. Mathar, Apr 24 2010
MATHEMATICA
Module[{semis=Select[Range[100000], PrimeOmega[#]==2&]}, Select[ Prime[ Range[ PrimePi[ Length[semis]]]], PrimeQ[semis[[#]]/ Total[ IntegerDigits[ #]]]&]] (* Harvey P. Dale, May 10 2014 *)
CROSSREFS
Sequence in context: A181609 A205827 A098544 * A281529 A090253 A001064
KEYWORD
nonn,base
AUTHOR
EXTENSIONS
Keyword:base added, sequence extended by R. J. Mathar, Apr 24 2010
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 19 09:23 EDT 2024. Contains 371782 sequences. (Running on oeis4.)