Given n; generate prime numbers between 0 and n.