OFFSET
1,1
COMMENTS
EXAMPLE
3 is a term since it's a cousin prime with 7 and their respective binary representations 011 and 111 differ at a single bit position.
13 is not a term since, although it's a cousin prime with 17, their respective binary representations 1101 and 10001 differ at more than a single bit position.
MATHEMATICA
Select[Prime[Range[480]], PrimeQ[#+4]&&Mod[#, 8]<4&] (* James C. McMahon, Mar 01 2025 *)
PROG
(Python)
import sympy
def ok(n): return (n&5)==1 and sympy.isprime(n) and sympy.isprime(n+4)
CROSSREFS
KEYWORD
nonn,base,new
AUTHOR
James S. DeArmon, Jan 01 2025
EXTENSIONS
a(45)-a(48) from James C. McMahon, Mar 01 2025
STATUS
approved