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.

A117708 Numbers that are both lucky numbers and Chen primes.

Original entry on oeis.org

3, 7, 13, 31, 37, 67, 127, 211, 307, 409, 487, 541, 577, 631, 769, 787, 937, 991, 1009, 1039, 1117, 1201, 1291, 1459, 1471, 1567, 1777, 1801, 2251, 2281, 2467, 2557, 2647, 2971, 3037, 3187, 3259, 3307, 3559, 3709, 3847, 3889, 4441, 4567, 4801, 4969, 4987
Offset: 1

Views

Author

Jani Melik, Apr 27 2006

Keywords

Crossrefs

Intersection of A000959 and A109611.
Subsequence of A031157.

Programs

  • Mathematica
    lst = Range[1, 5000, 2]; i = 2; While[ i <= (len = Length@lst) && (k = lst[[i]]) <= len, lst = Drop[lst, {k, len, k}]; i++ ]; chenQ[n_] := PrimeQ[n] && Plus @@ Last /@ FactorInteger[n + 2] < 3; Select[lst, chenQ@# &] (* Robert G. Wilson v, May 12 2006 *)

Extensions

Corrected and extended by Robert G. Wilson v, May 12 2006