JuliaMath / JuliaMath/Primes.jl

[FEATURE] Reverse iteration for `Factorization`

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

Description

Given a factorization from `factor(N)` (that's eager and already sorted in `f.pe`), it should be relatively easy to implement `iterate` for `Iterators.Reverse{T}`. Alternatively (preferably) declare the `pe` field public or provide an API to get read-only access to `pe` as a vector without allocating. (hope I haven't missed the way to do this if it's already possible)

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.