added prob10 and slight adjustment to is_prime() function