What's the problem with this code?
I want to make a prime checker
I use the following formula
If a number nr is prime, than this equation will be true
(nr-1)!+1%nr=0
So the equation will have no remainder.
I am a beginner to programming so don't judge
And if you find any other mistakes, tell me so I can learn.
Thanks!