Prime numbers are arranged in a ordered list U$U$, in increasing order. Let S$S$ be a sublist of U$U$ with a unique property that for every element A$A$ belonging to list S$S$, if i$i$ denotes the index of A$A$ in list U$U$, than i$i$ also belongs to list U$U$.
Given N$N$, find sum of first N$N$ elements of list S$S$, assuming 1-based indexing.
As the sum can be very large, print the sum modulo 109+7$10^{9}+7$.

-----Input:-----
-The first line of the input contains a single integer T$T$ denoting the number of test cases.
-Only line of each test case has an integer N$N$ .

-----Output:-----
For each test case, print a single integer denoting the sum of first N$N$ elements of set S$S$ modulo 109+7$10^{9}+7$.

-----Constraints-----
- 1≤T≤10000$1 \leq T \leq 10000$
- 1≤N≤1000$1 \leq N \leq 1000$

-----Subtasks-----
- 
20 points : 
- 
1≤T≤10000$1 \leq T \leq 10000$
- 
1≤N≤10$1 \leq N \leq 10$
- 
20 points :
- 
1≤T≤100$1 \leq T \leq 100$
- 
1≤N≤100$1 \leq N \leq 100$
- 
60 points : Original Constraints

-----Sample Input:-----
2

1
2

-----Sample Output:-----
3
8

-----EXPLANATION:-----
Example case 1: 
First few elements of set S$S$ are  {3,5,11…}  , so sum is 3.
Example case 2: 
Sum is 3+5=8.

```python

USER_FILENAME = "<user_code>"
import sys, json, builtins
import math, heapq, bisect, itertools, functools, collections, statistics, fractions, decimal, operator, array, random, re, string, os, pathlib
try:
    import resource as _res
except Exception:
    _res = None
from collections import Counter, defaultdict, deque, OrderedDict
from functools import lru_cache, reduce
from itertools import accumulate, permutations, combinations, product
from math import gcd, ceil, floor, sqrt
from decimal import Decimal
try:
    from typing import *
except Exception:
    pass
try:
    sys.setrecursionlimit(1_000_000)
except Exception:
    pass
try:
    import site as _site
    try:
        _sys_sites = _site.getsitepackages() if hasattr(_site, "getsitepackages") else []
        for _p in _sys_sites:
            if _p and _p not in sys.path:
                sys.path.append(_p)
    except Exception:
        pass
    try:
        _usp = _site.getusersitepackages()
        if isinstance(_usp, str):
            _usp = [_usp]
        for _p in _usp:
            if _p and _p not in sys.path:
                sys.path.append(_p)
    except Exception:
        pass
except Exception:
    pass

ns = {"__name__": "__main__"}
for _k, _v in list(globals().items()):
    if not _k.startswith("_"):
        ns[_k] = _v
_CODE = 'def prime(n):\r\n\tnroot = int(n**0.5)+1\r\n\t\r\n\r\n\tctr =0\r\n\tseive= [2,3,5,7,11,13]\r\n\tif n <=seive[-1]:\r\n\t\treturn seive\r\n\telse:\r\n\r\n\t\tn_start = seive[-1]+1\r\n\t\t\r\n\t\tfor i in range(n_start,n):\r\n\t\t\tiroot = int(i**0.5)+1\r\n\t\t\tfor j in seive:\r\n\t\t\t\tif i%j==0:\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\tctr=0\r\n\t\t\t\t\tbreak\r\n\t\t\t\telse:\r\n\t\t\t\t\tif j>(iroot):\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\tctr=1\r\n\t\t\t\t\t\tbreak\r\n\t\t\tif ctr==1:\r\n\t\t\t\r\n\t\t\t\tseive.append(i)\r\n\t\treturn seive\r\n\r\n\r\n\r\nseive = prime(81100)\r\n\r\nt = int(input())\r\nfor l in range(t):\r\n\tn = int(input())\r\n\ts = []\r\n\r\n\t# print(prime(1000))\r\n\tsump=0\r\n\tfor i in range(n):\r\n\t\tj = seive[i]\r\n\t\t\r\n\t\tsump = (sump + seive[j-1]%1000000007)%100000000\r\n\r\n\t\r\n\t\r\n\t\t\r\n\tprint(sump)'
_co = compile(_CODE, USER_FILENAME, "exec")
exec(_co, ns, ns)

```

Measured memory_bytes: 333213