is prime parser passes unit test but doesn't work