You have an array $$$a$$$ of $$$n$$$ positive integers. There are three types of operations performed on this array:
Given the array $$$a$$$ and a sequence of $$$q$$$ operations performed in order, determine the result of each type 2 operation.
The first line contains an integer $$$n$$$ ($$$1 \leq n \leq 10^5$$$), the size of the array $$$a$$$.
The second line contains $$$n$$$ integers $$$a_1, a_2, \ldots, a_n$$$ ($$$1 \leq a_i \leq 10^4$$$), the elements of the array $$$a$$$.
The third line contains an integer $$$q$$$ ($$$1 \leq q \leq 10^5$$$), the number of operations.
The next $$$q$$$ lines describe the operations performed in order. Each operation is described by an integer $$$t$$$ ($$$1 \leq t \leq 3$$$) and the values corresponding to the operation.
For each type 2 operation, print an integer, the minimum possible sum of the prime factors of the numbers $$$a_l, a_{l+1}, \ldots, a_r$$$.
4 10 9 2 4 8 1 4 2 1 4 1 1 2 1 3 3 2 3 12 2 2 4 1 4 2 4 4
17 10 16 0
8 9608 9630 489 5648 5240 8338 9028 5564 10 2 6 6 3 3 7 9838 3 6 7 7525 1 8 2 8 8 2 2 5 2 1 3 1 5 2 6 7 2 5 6
392 17 14883 6248 120 62
For the first case, the first 4 operations are performed as follows:
| Name |
|---|


