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!)
A217907 Numbers whose digits squared sum to a semiprime. 1
2, 3, 5, 7, 13, 15, 18, 19, 20, 29, 30, 31, 34, 35, 37, 43, 47, 50, 51, 53, 57, 59, 67, 70, 73, 74, 75, 76, 81, 89, 91, 92, 95, 98, 103, 105, 108, 109, 112, 116, 117, 121, 122, 123, 124, 128, 129, 130, 132, 134, 135, 136, 138, 139, 142, 143, 144, 150, 153, 155 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
Christian N. K. Anderson, Table of n, a(n) for n = 1..10000
EXAMPLE
135 is in the sequence because 1^2+3^2+5^2=35, and 35=7*5 is a semiprime.
MATHEMATICA
Select[Range[200], PrimeOmega[Total[IntegerDigits[#]^2]]==2&] (* Harvey P. Dale, Nov 26 2022 *)
PROG
(R) sumodsq<-function(i) sum(as.numeric(strsplit(as.character(i), "")[[1]])^2)
sodsq.sp=c(); i=-1
while(length(sodsq.sp)<10000) if(sum(factorize(sumodsq((i=i+1)))[[1]][, 2])==2) sodsq.sp=c(sodsq.sp, i)
CROSSREFS
Sequence in context: A262350 A228891 A168484 * A031344 A004682 A173105
KEYWORD
nonn,base,easy
AUTHOR
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 25 07:53 EDT 2024. Contains 371964 sequences. (Running on oeis4.)