Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/akarachen/prime
一百万以内判断质数
https://github.com/akarachen/prime
Last synced: 5 days ago
JSON representation
一百万以内判断质数
- Host: GitHub
- URL: https://github.com/akarachen/prime
- Owner: AkaraChen
- License: mit
- Created: 2022-11-06T04:48:39.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-07T08:01:08.000Z (almost 2 years ago)
- Last Synced: 2024-10-24T04:11:37.998Z (14 days ago)
- Language: JavaScript
- Size: 2.67 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Prime
> 看个乐呵行了,有人会用这玩意么?反正我不用。
怪不得说程序员是个体力活呢,今年年初开始写代码,三百万行,完成了人生中第一个判断一百万以内的质数的项目,代码传到 [Github](https://github.com/akarachen/prime) 了,后续会更新一千万,一亿以内的判断质数的项目,欢迎大家在 github 上 star 我的项目。
[梗来源](./motivation.png)
## 用法
```html
console.log(isPrime(1000)); // false
```
## 生成器用法
```shell
node write 1000000
```