login
A337480
Numbers k such that exactly one of 6*k + 5 and 12*k + 5 is prime.
2
6, 12, 13, 17, 18, 19, 23, 26, 27, 28, 31, 33, 39, 41, 44, 47, 48, 49, 52, 53, 54, 56, 57, 59, 67, 68, 69, 74, 76, 78, 83, 86, 87, 88, 91, 93, 94, 97, 101, 109, 112, 114, 116, 117, 124, 126, 128, 129, 132, 133, 137, 139, 141, 144, 146, 147, 151, 154, 159, 161
OFFSET
1,1
LINKS
EXAMPLE
a(5) = 18 is a term because 6*18 + 5 = 113 is prime; but 12*18 + 5 = 221 = (13*17) is a composite number.
a(8) = 26 is a term because 6*26 + 5 = 161 = (7*23) is a composite number; but 12*26 + 5 = 317 is prime.
MAPLE
A337480:=k->`if`(isprime(6*k+5) xor isprime(12*k+5), k, NULL): seq(A337480(k), k=1..1000);
MATHEMATICA
Select[Range[0, 250], Xor[PrimeQ[6 # + 5], PrimeQ[12 # + 5]] &]
PROG
(PARI) for(k=1, 1000, if (bitxor(isprime(6*k+5), isprime(12*k+5)), print1(k, ", ")));
CROSSREFS
KEYWORD
nonn
AUTHOR
K. D. Bajpai, Aug 28 2020
STATUS
approved