OFFSET
1,1
COMMENTS
It seems that all of the terms in A197918 with the exception of the first three terms are also in this sequence.
MATHEMATICA
Select[Range[3000], PrimeQ[#] && BitXor[#, 22] == # + 22 &] (* T. D. Noe, Jul 24 2012 *)
Select[Prime[Range[400]], BitXor[#, 22]==#+22&] (* Harvey P. Dale, Jul 23 2023 *)
PROG
(Magma)
XOR := func<a, b | Seqint([ (adigs[i] + bdigs[i]) mod 2 : i in [1..n]], 2)
where adigs := Intseq(a, 2, n)
where bdigs := Intseq(b, 2, n)
where n := 1 + Ilog2(Max([a, b, 1]))>;
m:=22;
for n in [2 .. 10000] do
if IsPrime(n) then pn:=n;
if (XOR(pn, m) eq pn+m) then pn; end if;
end if;
end for;
CROSSREFS
KEYWORD
nonn
AUTHOR
Brad Clardy, Jul 23 2012
STATUS
approved