In mathematics, the sieve of Eratosthenes, one of a number of prime number sieves, is a simple, ancient algorithm for finding all prime numbers up to any given limit.
Algorithm is means to solving problem (plan of doing it), and it's word used by computer programmers.
Prime numbers can be used in cryptography. Cryptography is used in hacking and IT Security.
Source code is available: [link]