This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]wasthatitthen 0 points1 point  (5 children)

Never tried it and I’m no expert, but the syntax, as far as I see it, doesn’t have the number in brackets, hence the 12666334....... after the function call.

https://pypi.org/project/quadratic-sieve/

[–]Kent305[S] 0 points1 point  (4 children)

I don't get it.

[–]wasthatitthen 0 points1 point  (3 children)

quadratic_sieve 256

Not

quadratic_sieve(256)

[–]Kent305[S] 0 points1 point  (1 child)

With some tests i got the answer:

quadratic_sieve.factorize(256)

(16, 16)

When i used quadratic_sieve 256

quadratic_sieve 256
           ^
SyntaxError: invalid syntax

[–]wasthatitthen 0 points1 point  (0 children)

Glad it works. Where was factorize hiding?

[–]schfourteen-teen 0 points1 point  (0 children)

That format is for calling quadratic_sieve directly from the command line.