corrected issue with prime: was returning true for negative numbers