fixed a bug with incorrectly identifying 2 as non prime