Speed optimisation. If a number to be checked is known to be not a prime, then all its multiples have been checked too