OFFSET
1,1
LINKS
Ivan N. Ianakiev, Table of n, a(n) for n = 1..10000
FORMULA
Intersection of A042963 (odd number of odd numbers), A042964 (odd number of even numbers), A057812 (odd number of primes). - Michel Marcus, Feb 26 2014
EXAMPLE
A cubic die whose faces are marked with the numbers from 1 to 6 has odd number of sides marked with prime numbers (2, 3 and 5), even integers (2, 4 and 6) and odd integers (1, 3 and 5). Therefore, 6 is in the sequence.
MATHEMATICA
Select[Range[2, 1000, 4], OddQ[PrimePi[#]] &] (* Paolo Xausa, Jun 24 2024 *)
PROG
(PARI) isok(n) = (primepi(n) % 2) && ((n % 4) == 2); \\ Michel Marcus, Mar 12 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Ivan N. Ianakiev, Feb 16 2014
STATUS
approved