Added 2 functions, checkprime and isNumber

I'm pretty sure it works completely but if someone wants to quick check it and if you want to make changes go right ahead.