add n <1 for prime