Purpose - Find all prime numbers between 0 and 'upperLimit'

How can I take the prime numbers and output them to a .csv file using a separate class?

Thanks.


public class Sieve {

...