- 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.
推薦閱讀
- The Complete Rust Programming Reference Guide
- Mastering Kotlin
- SEO智慧
- Monitoring Elasticsearch
- Big Data Analytics
- C語言程序設(shè)計
- Python Web數(shù)據(jù)分析可視化:基于Django框架的開發(fā)實戰(zhàn)
- C#應(yīng)用程序設(shè)計教程
- 學(xué)習(xí)OpenCV 4:基于Python的算法實戰(zhàn)
- PHP+MySQL+Dreamweaver動態(tài)網(wǎng)站開發(fā)從入門到精通(第3版)
- 微信小程序全棧開發(fā)技術(shù)與實戰(zhàn)(微課版)
- ASP.NET開發(fā)與應(yīng)用教程
- 新一代SDN:VMware NSX 網(wǎng)絡(luò)原理與實踐
- 零基礎(chǔ)學(xué)Kotlin之Android項目開發(fā)實戰(zhàn)
- Spring Boot實戰(zhàn)