in reply to is it prime?

hi all i wrote this function to check if the number is prime or not but i just want to confirm if i'm doing this correctly :

Didn't your teacher provide a list of test values for your homework?