手抄报 安全手抄报 手抄报内容 手抄报图片 英语手抄报 清明节手抄报 节约用水手抄报

Mathematica基础——再谈素数

时间:2024-10-12 19:21:21

1、RandomPrime[100],随机给出一个小于100的素数。

Mathematica基础——再谈素数

2、给出比999大的最小素数:NextPrime[999觥终柯计]给出比999小的最大素数:NextPrime[999,-1]

Mathematica基础——再谈素数
Mathematica基础——再谈素数

3、MersennePrimeExponent[6]给出第六个梅森素数的指数。

Mathematica基础——再谈素数

4、MersennePrimeExponentQ[17],判断17是不是梅森素数的指数。

Mathematica基础——再谈素数

5、PerfectNumber[6]给出第6个完美数。

Mathematica基础——再谈素数

6、判断一个数字是不是完美数:PerfectNumberQ[6]PerfectNumberQ[36]

Mathematica基础——再谈素数
© 手抄报圈