1 prime number found

Maths - Sample 3 - The prime numbers graph

In the MATHS section I want to find and share useful ways to deal with mathematical
concepts that are often used in games. Let's play with algorithms and discuss together
to optimize them. Here is a sample to build a dynamic rendering of the graph of the prime
numbers updated each time a new prime number is found with the method of the previous sample.
The scale of the (x) and (y) axis are automatically changed as soon as the last values cannot
fit into the covered area.

More samples and useful functions here