A235687 Semiprimes which remain semiprimes when the rightmost digit is removed.
46, 49, 62, 65, 69, 91, 93, 94, 95, 106, 141, 142, 143, 145, 146, 155, 158, 159, 213, 214, 215, 217, 218, 219, 221, 226, 253, 254, 259, 262, 265, 267, 334, 335, 339, 341, 346, 355, 358, 381, 382, 386, 391, 393, 394, 395, 398, 466, 469, 493, 497, 511, 514
Offset: 1
Examples
514 is in the sequence because 51 = 3*17.
Links
- Harvey P. Dale, Table of n, a(n) for n = 1..1000
Programs
-
Mathematica
Select[Range[600],PrimeOmega[#]==2==PrimeOmega[FromDigits[ Most[ IntegerDigits[ #]]]]&] (* Harvey P. Dale, Oct 02 2014 *) Select[Range[600],PrimeOmega[#]==PrimeOmega[Quotient[#,10]]==2&] (* Harvey P. Dale, Mar 18 2023 *)
-
PARI
list(lim)=my(v=List(), t); forprime(p=2, sqrt(lim), t=p; forprime(q=p, lim\t, listput(v, t*q))); vecsort(Vec(v)) \\ From A001358 issemiprime(n) = n>0 && bigomega(n)==2 t=list(1000); for(n=1, #t, if(issemiprime(t[n]\10), print1(t[n],", ")))