Anya has sat for her mid-term exam in her school, Eden Academy. She must achieve all the stella stars to keep her family together and save world peace. Otherwise, Loid's "Operation Strix" will fail. The students next to her are struggling to answer the questions, so she can't take any worthy help from her telepathy ability. Help her to find the answers.
She is given an array $$$A$$$ with $$$N$$$ integers. Let's denote: $$$$$$\pi(x) = \text{the number of prime numbers from } 1 \text{ to } x.$$$$$$
There are $$$Q$$$ questions (queries) to answer, of two types:
Help Anya cook in her exam and make Damian fall for her, making Operation Strix succeed.
Constraints:
For every query of type $$$1$$$, print one integer: $$$\sum_{i=l}^{r} \pi(A_i)$$$, where $$$\pi(A_i)$$$ is the number of prime numbers from $$$1$$$ to $$$A_i$$$.
Print the answers in the order the queries are given.
| Subtask | Points | $$$N$$$ | $$$Q$$$ | $$$A_i$$$ | $$$v$$$ | Additional Constraints |
| 0 | 0 | - | - | - | - | The examples |
| 1 | 10 | $$$\le 1000$$$ | $$$\le 1000$$$ | $$$\le 10^4$$$ | $$$\le 10^4$$$ | No additional constraints. |
| 2 | 15 | $$$\le 5000$$$ | $$$\le 5000$$$ | $$$\le 10^6$$$ | $$$\le 10^6$$$ | No additional constraints. |
| 3 | 20 | - | - | $$$\le 10^7$$$ | - | There are no type $$$2$$$ queries. |
| 4 | 25 | - | - | $$$\le 10^7$$$ | $$$\le 10^7$$$ | No additional constraints. |
| 5 | 30 | - | - | $$$\le 10^8$$$ | $$$\le 10^8$$$ | No additional constraints. |
104 3 0 50 49 1 3 4 4 381 5 61 4 41 9 92 7 501 2 81 8 92 1 32 9 3
15 15 2 49 4
The initial array is $$$A = [4, 3, 0, 50, 49, 1, 3, 4, 4, 3]$$$. Useful values: $$$\pi(0) = \pi(1) = 0$$$, $$$\pi(3) = \pi(4) = 2$$$, $$$\pi(49) = \pi(50) = 15$$$.
| Name |
|---|


