Skip to content

Iterating primes in descending order #34

@samuelpilz

Description

@samuelpilz

Hi, I have the usecase where I need to iterate primes of a sieve in descending order starting from some upper bound.

This example prints all primes below 100 in descending order

for prime in sieve.primes_from_desc(100) {
  println!("{}", p);
}

Is a function like this possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions