I assume you are new to this, but please try to follow what I say.
I don't know how you came up with this algorithm, but that is definitely not how you check if a number is prime.
Coming to your code,
return 0;
so the function naturally always returns 0.true
or false
, not 0
.NotPrime
and PrimeCheck
? You don't you use them anywhere.