| UTPC April Fools Contest 2026 |
|---|
| Закончено |
Pollux is taking a number theory course. Help him answer a question from his class:
How many numbers less than or equal to $$$n$$$ are prime?
The first line contains $$$n$$$ $$$(4\le n\le 3\cdot 10^5)$$$
Print out $$$k$$$, the number of primes up to $$$n$$$. Then print out the $$$k$$$ primes.
Also, if you print out extra things at the end, the checker will ignore them. :)
10
[sorry, we don't have the answer to the sample]
| Название |
|---|


