Removed cruft from gitignore
Throw errors when appropriate
Handle nonpositive and nonintegrals in is_prime