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.

A130593 Evil semiprimes.

Original entry on oeis.org

6, 9, 10, 15, 33, 34, 39, 46, 51, 57, 58, 65, 77, 85, 86, 95, 106, 111, 119, 123, 129, 141, 142, 159, 166, 169, 177, 178, 183, 187, 201, 202, 209, 215, 219, 221, 226, 235, 237, 249, 267
Offset: 1

Views

Author

Jonathan Vos Post, Jun 16 2007

Keywords

Comments

Products of two (not necessarily distinct) primes such that the product has an even number of 1's in its binary expansion. Non-evil semiprimes are odious (A000069).

Crossrefs

Programs

  • Mathematica
    Select[Range[300],PrimeOmega[#]==2&&EvenQ[DigitCount[#,2,1]]&] (* Harvey P. Dale, Nov 08 2011 *)
  • PARI
    list(lim)=my(v=List(), t); forprime(p=2, lim\2, forprime(q=2, min(p,lim\p), if(hammingweight(n=p*q)%2,,listput(v, n)))); vecsort(Vec(v)) \\ Charles R Greathouse IV, Mar 26 2013

Formula

A001358 INTERSECTION A001969.

Extensions

Corrected (a(21)=129 added) by Harvey P. Dale, Nov 08 2011