Generates every prime between given numbers