Skip to content

remove redundant computation from Jacobi test #43

@omershlo

Description

@omershlo

fn two_over(n: &BigInt) -> i8 {
if n.mod_floor(&BigInt::from(8)) == BigInt::one()
|| n.mod_floor(&BigInt::from(8)) == BigInt::from(7)

modulo is computed twice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions