worked on ass1, prime numbers