Definition:
A Prime number is ONLYa multiple of 1 or itself (has two ONLY two factors); or
A Prime number is NOT a multiple of any numbers less than itself (NOT a product of any smaller numbers).
Algorithm:
Finding all the Prime numbers smaller than A number;
Primality Test.