lots more tests and more efficient prime tester