JuliaMath / JuliaMath/Primes.jl

UnitRange as argument, feature proposal

Open
#89 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Julia
Stars
108
Forks
34
PR merge metrics
No merged PRs in 30d

Description

To me, it would make sense if a range could be an argument to `primes` by
`primes(r::UnitRange) = primes(r.start, r.stop)`
to have things such as
```
> primes(1:10)
4-element Array{Int64,1}:
2
3
5
7
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.