Problem J
Pallatölur
Languages
en
is

Palli loves prime numbers but his favourite numbers are even
prime numbers. Palli received numbers from his grandmother as a
birthday present, but he only wants to hold on to his favourite
numbers. The set of numbers his grandmother bought included all
the integers from
Input
Input consists of two lines. The former line consists of the
integer
Output
If there are no even prime numbers in the range you should output :( because then Palli is sad. Otherwise you should output two lines. The former line should consist of the number of even primes in the range. The latter line should consist of the even primes in ascending order, separated by spaces.
Scoring
Group |
Point |
Constraints |
1 |
100 |
|
Sample Input 1 | Sample Output 1 |
---|---|
1 3 |
1 2 |
Sample Input 2 | Sample Output 2 |
---|---|
-1 1 |
:( |