ok.
first corrected the PrimeGenerator.
and
started with the spoj stufs.