Ask Your Question
1

qsieve error

asked 2019-10-29 09:44:32 -0600

JRHales gravatar image

I'm trying to run the qsieve function in sage (version 8.9) and I'm getting a file or directory error.

For example, when I try the code

n = next_prime(10^20)*next_prime(10^21)
q,t = qsieve(n,time = True)

I get the error,

OSError: [Errno 2] No such file or directory.

I tried looking up if there was an additional library or package I needed to download to make the qsieve function work, but I couldn't find anything. Any advice or insight would be appreciated.

edit retag flag offensive close merge delete

Comments

1

Works fine for me. Please post the full traceback.

FrédéricC gravatar imageFrédéricC ( 2019-11-01 14:19:57 -0600 )edit

Are you using Windows? I was able to reproduce this on Windows (I'm not certain it's Windows-specific yet though).

Iguananaut gravatar imageIguananaut ( 2019-11-05 08:34:12 -0600 )edit

1 answer

Sort by » oldest newest most voted
1

answered 2019-11-05 08:52:29 -0600

Iguananaut gravatar image

This seems to be a Windows-specific bug. It will only be a problem if you use the time=True argument.

You could get around this by using timeit instead, like:

sage: T = timeit('qsieve(n)', repeat=1, number=1)

in this case T is a SageTimeitResult object which you can query like:

sage: T.stats
(1, 1, 3, 2.885032892227173, u's')

The bug is now this ticket: https://trac.sagemath.org/ticket/28696

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2019-10-29 09:44:32 -0600

Seen: 51 times

Last updated: Nov 05