login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
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
Sequence in context: A335485 A004749 A107687 * A297258 A296702 A297135
KEYWORD
nonn
AUTHOR
K. D. Bajpai, Aug 28 2020
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 20 00:03 EDT 2024. Contains 371798 sequences. (Running on oeis4.)