As the title suggests, there is a huge number of algorithms, to calculate prime numbers. It was a great surprise, as soon as I discovered this.

Mathematicians are amazing!