Primes
Usage
• Primes表示素数域,如同 x Primes.
Notes
• x Primes 仅对 x是一个数值时进行计算。 • Simplify[expr Primes]可以用于确定是否一个表达式相应于一个 素数。 • 素数域取为整数域的一个子集。 • PrimeQ[expr]返回False,除非expr明确有头Integer。 • Primes在 TraditionalForm中输出为 .
Further Examples
This shows that is not a prime number.
In[1]:=
|
Out[1]=
|
False was returned because it factors.
In[2]:=
|
Out[2]=
|
You can also use PrimeQ.
In[3]:=
|
Out[3]=
|
Here are some simplifications involving prime numbers.
In[4]:=
|
Out[4]=
|
In[5]:=
|
Out[5]=
|
同时参见 PrimeQ.
|