TDPRIMES – Printing some primes Solution

0
99
SPOJ Solution

TDPRIMES Statement

The problem statement is really simple. You are to write all primes less than 10^8

Input

There is not input

Output

To make the problem less output related write out only the 1st, 101st, 201st, … 1st mod 100.

Example

Hint for TDPRIMES

Using Sieve of eratosthenes

TDPRIMES Solution

You may also like:

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.