The Learning Script

This is an example of a script that learns as it goes along.

To calculate the prime factors of a number it's best to have the list of prime numbers because calculating prime numbers is a time consuming algorithm.

This script calculates the prime numbers it needs and stores them for reuse, in effect "learning" the prime numbers.

Note: This demo script is limited to 5 seconds execution time so as not to hog the shared server.
Hello!

I know 6,001 prime numbers from 2 to 59,369 and I'm eager to learn more.

Find the Prime Factors of a Number Enter a whole number: