I made a header file a while ago, that was meant to check if a number is prime. I attached it to this post, and I have a link to my page where I have a zip file with source code and a data file of the first million prime numbers. Let me know what you think of it.My Page