Is there any prime number larger than 998244353 which is such that we can apply NTT on arrays of size up to 2^19 and the prime number is greater than 1e11
Is there any prime number larger than 998244353 which is such that we can apply NTT on arrays of size up to 2^19 and the prime number is greater than 1e11
| # | User | Rating |
|---|---|---|
| 1 | Benq | 3792 |
| 2 | tourist | 3755 |
| 3 | ecnerwala | 3696 |
| 4 | VivaciousAubergine | 3647 |
| 5 | ksun48 | 3629 |
| 6 | jiangly | 3616 |
| 7 | turmax | 3559 |
| 8 | strapple | 3486 |
| 9 | Kevin114514 | 3427 |
| 10 | Um_nik | 3376 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 162 |
| 2 | adamant | 148 |
| 3 | Um_nik | 146 |
| 4 | Dominater069 | 143 |
| 5 | errorgorn | 141 |
| 6 | cry | 138 |
| 7 | Proof_by_QED | 136 |
| 8 | YuukiS | 135 |
| 9 | chromate00 | 134 |
| 10 | soullless | 133 |
| Name |
|---|



Any prime that is greater than $$$10^{11}$$$ and is in the form of $$$k \times 2^{19}+1$$$, where $$$k$$$ is an integer, should fit your requirements.
Note that $$$998244353 = 119 \times 2^{23}+1$$$.
Why did gray guy need FFT? Go learn bubble sort
$$$100000595969$$$ is the smallest prime $$$p$$$ above $$$10^{11}$$$ with $$$p \equiv 1 \pmod{2^{19}}$$$ (found with a simple python3 session). The smallest primitive root is $$$3$$$.