Prime number generation programs, used for teaching tools