The Fermat primality test is a probabilistic test to determine if a number is probable prime .
Fermat 's primality test is an algorithm .