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.

A292349 Pri-most primes: primes p such that the majority of bits in the binary representation of p satisfy the following: complementing this bit produces a prime number.

Original entry on oeis.org

7, 19, 23, 43, 71, 101
Offset: 1

Views

Author

Alex Ratushnyak, Dec 07 2017

Keywords

Comments

Primes in A292348.
Conjecture: the sequence is finite.
Any further terms are > 10^12. - Lucas A. Brown, Oct 05 2024

Crossrefs

Programs

  • Mathematica
    Select[Prime@ Range[10^5], Function[n, Function[d, 2 Count[Array[FromDigits[#, 2] &@ MapAt[Mod[# + 1, 2] &, d, #] &, Length@ d], ?PrimeQ] > Length@ d]@ IntegerDigits[n, 2]]] (* _Michael De Vlieger, Dec 08 2017 *)
  • Python
    from sympy import isprime, primerange
    for i in primerange(1, 1000):
      delta = 0
      bit = 1
      while  bit <= i:
        if isprime(i^bit): delta += 1
        else:              delta -= 1
        bit*=2
      if delta > 0:  print(str(i), end=',')