Skip to content

overflow issue for large primes #20

@jacksonwalters

Description

@jacksonwalters

when q=12289, n=512, we obtain overflow errors for when computing omega(q^2, n). this is likely due to the line

if g_lifted.pow((p - 1) as u32) % p.pow(e) == 1

in primitive_root. it should probably be a mod_exp.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions