Primality by Wilson's theorem: Difference between revisions

(Add Plain English)
Line 601:
To decide if a number is prime (via Wilson's theorem):
If the number is less than 1, say no.
PutFind a factorial of the number minus 1. intoBump anotherthe numberfactorial.
Find a factorial of the other number.
Bump the factorial.
If the factorial is evenly divisible by the number, say yes.
Say no.</lang>
1,827

edits