You can do better than using the arbitrary range of +100/-100, (which isn't going to be good enough when your numbers get larger). Here's a an introductory explaination of prime number distribution you might find helpful.
-- All code is 100% tested and functional unless otherwise noted.