a(1) = 1 and - applying the sieve of Eratosthenes - for n > 1: a(n) = if n is prime then 0 else the first prime p which marks n as composite.

A063918

a(1) = 1 and - applying the sieve of Eratosthenes - for n > 1: a(n) = if n is prime then 0 else the first prime p which marks n as composite.

Terms

    a(0) =1a(1) =0a(2) =0a(3) =2a(4) =0a(5) =2a(6) =0a(7) =2a(8) =3a(9) =2a(10) =0a(11) =2a(12) =0a(13) =2a(14) =3a(15) =2a(16) =0a(17) =2a(18) =0a(19) =2a(20) =3a(21) =2a(22) =0a(23) =2a(24) =5a(25) =2a(26) =3a(27) =2a(28) =0a(29) =2

External references