did another challenge, discovered bug in isprime function