Adding prime function

I added a prime function to use for the prime criteria when I or anyone
hits it. I also broke the hash into lines for readability(can undo that
if undesired).