Checks number entered. Only checks up to sqrt(num) for Primes
Added in comments
Merge pull request #1 from TenLetters/master

Updated Code