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.

Showing 1-2 of 2 results.

A235687 Semiprimes which remain semiprimes when the rightmost digit is removed.

Original entry on oeis.org

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

Views

Author

Colin Barker, Jan 14 2014

Keywords

Examples

			514 is in the sequence because 51 = 3*17.
		

Crossrefs

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],", ")))

A235688 Semiprimes which remain semiprimes when the leftmost digit is removed.

Original entry on oeis.org

14, 26, 34, 39, 46, 49, 69, 74, 86, 94, 106, 115, 121, 122, 133, 134, 146, 155, 158, 169, 177, 185, 187, 194, 206, 209, 214, 215, 221, 226, 235, 249, 262, 265, 274, 287, 291, 295, 309, 314, 321, 326, 334, 335, 339, 346, 355, 358, 362, 365, 377, 382, 386, 391
Offset: 1

Views

Author

Colin Barker, Jan 14 2014

Keywords

Examples

			249 is in the sequence because 49 = 7*7.
		

Crossrefs

Programs

  • Mathematica
    Select[Range[400],PrimeOmega[#]==PrimeOmega[Mod[#,10^(IntegerLength[ #]-1)]] == 2&] (* Harvey P. Dale, Jun 07 2017 *)
  • 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
    delleft(a) = my(b, c); b=#Str(a); c=a\(10^(b-1)); a-c*(10^(b-1))
    issemiprime(n) = n>0 && bigomega(n)==2
    t=list(500); for(n=1, #t, if(issemiprime(delleft(t[n])), print1(t[n],", ")))
Showing 1-2 of 2 results.