Generates a file with Prime numbers less than 10,000,000

Generates a file as a txt with all prime numbers less than 10,000,000 through sieving. Each line is a separate prime number.