Implemented the atkin's sieve to PRINT spoj problem