这是 ProvablePrimeQ 的另一个例子
In[1]:= FerrierPrime = (2^148 + 1)/17;
In[2]:= PrimeQ[FerrierPrime] // Timing
Out[2]= {0.01 Second, True}
In[3]:= ProvablePrimeQ[FerrierPrime,
"Certificate" -> True] // Timing
Out[4]= {0.04 Second,{True,
{20988936657440586486151264256610222593863921,17,
{2,{3,2,{2}},{5,2,{2}},{7,3,{2,{3,2,{2}}}},
{13,2,{2,{3,2,{2}}}},{19,
2,{2,{3,2,{2}}}},{37,2,{2,{3,2,{2}}}},{73,5,{
2,{3,2,{2}}}},{97,5,{2,{3,2,{2}}}},{109,
6,{2,{3,2,{2}}}},{241,7,{2,{3,2,{2}},{5,2,{
2}}}},{257,3,{2}},{433,5,{2,{3,2,{2}}}},{
577,5,{2,{3,2,{2}}}},{673,5,{2,{3,2,{2}},{
7,3,{2,{3,2,{2}}}}}},{38737,5,{2,{3,2,{2}},
{269,2,{2,{67,2,{2,{3,2,{2}},{11,2,{2,{5,
2,{2}}}}}}}}}},{487824887233,5,{2,{3,2,{2}},{
1091,2,{2,{5,2,{2}},{109,6,{2,{3,2,{2}}}}}},
{28751,14,{2,{5,2,{2}},{23,5,
{2,{11,2,{2,{5,2,{2}}}}}}}}}}}}}}
使用 PrimalityCertificate 验证$(2^{148} + 1)/17$为素数
那么上面的 PrimalityCertificate 的底层原理是什么呢?
出现 {2,{3,2,{2}} 是什么意思 |