- Perl 6 Deep Dive
- Andrew Shitov
- 46字
- 2021-07-03 00:05:50
Checking whether the number is prime
The is-prime method returns a Boolean value, telling us whether the number is a prime number or not, as shown here:
say 10.is-prime; # False
say 11.is-prime; # True
Executing the is-prime method on big numbers may be slow.
推薦閱讀
- Testing with JUnit
- Visual FoxPro程序設(shè)計(jì)教程(第3版)
- Mastering OpenCV Android Application Programming
- Cross-platform Desktop Application Development:Electron,Node,NW.js,and React
- Java Web開發(fā)之道
- Java性能權(quán)威指南(第2版)
- Python Data Analysis(Second Edition)
- 差分進(jìn)化算法及其高維多目標(biāo)優(yōu)化應(yīng)用
- 零基礎(chǔ)學(xué)Python數(shù)據(jù)分析(升級(jí)版)
- Python Data Analysis Cookbook
- Keras深度學(xué)習(xí)實(shí)戰(zhàn)
- iOS自動(dòng)化測試實(shí)戰(zhàn):基于Appium、Python與Pytest
- 快速入門與進(jìn)階:Creo 4·0全實(shí)例精講
- Groovy 2 Cookbook
- WCF技術(shù)剖析(卷1)