prime numbers assignment version 2