1,1

This is the complement of sequence A014683.

Table of n, a(n) for n=1..72.

a(n) = A014684(n) + 1. - Bill McEachen, Nov 01 2020

Array[# + Boole[! PrimeQ@ #] &, 72] (* Michael De Vlieger, Nov 05 2020 *)

(PARI) a(n) = if (!isprime(n), n+1, n); \\ Michel Marcus, Nov 06 2020

Cf. A014683, A014684, A113523, A113638, A179278.

Sequence in context: A105605 A237710 A090473 * A262463 A151800 A259430

Adjacent sequences: A113633 A113634 A113635 * A113637 A113638 A113639

easy,nonn

Cino Hilliard, Jan 15 2006

Offset 1 from Michel Marcus, Nov 06 2020

approved