Skip to content

Commit

Permalink
Create test_factor_qs.py
Browse files Browse the repository at this point in the history
  • Loading branch information
teschlg committed Oct 30, 2024
1 parent 28cd95a commit 8d3da82
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_factor_qs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import pytest
from kryptools import is_prime
from kryptools.factor_qs import factor_qs


def test_qs():
for n in [ 832283, 2**32+1 ]:
m = factor_qs(n)
assert n % m == 0 and 1 < m and m < n

0 comments on commit 8d3da82

Please sign in to comment.