prime generator codechef solution