Fixes white space
Creates a function to test for primality