generate prime between specified range