Hiya, thought you might find this link uesful - its about generating prime numbers with examples

http://www.troubleshooters.com/codec...imenumbers.htm

have fun :-)

i2c