I've revised isprime(), now it is a bit faster. The new version embedded in a small unit can be found at: http://www.polarhome.com/~franco/isprime.pas Franco