The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

A103824

Choose a(n) to be the smallest number not yet used such that: a(1) = 1, a(2n) = prime, a(2n+1) = composite and partial sums are alternately composite or prime.