several prime number coding exercise