| AdaByron Regional Madrid 2024 |
|---|
| Закончено |
Goldbach's conjecture states that any even number greater than 2 can be written as the sum of two prime numbers. For example:
| 4 = | 2 + | 2 |
| 6 = | 3 + | 3 |
| 8 = | 3 + | 5 |
| ... | ||
| 9 = | 2 + | 7 |
| 15 = | 2 + | 13 |
| 21 = | 2 + | 19 |
| ... | ||
Given an index $$$i$$$, you are asked to compute the number at that position in $$$\mathcal{G}$$$, the Goddbach sequence, $$$\mathcal{G}_i$$$.
There will be several test cases, represented by a number $$$C$$$ given in the first line of the input. Each test case consists of exactly one line, each of which contains a single index $$$i$$$, counted from position 1.
The output should consist of as many lines as there are test cases defined in the input, $$$C$$$, so that each line should show the number of the Goddbach sequence occupying the position specified in the corresponding test case.
3 1 3 103
9 21 759
| Название |
|---|


