Ask Your Question
1

qsieve error

asked 2019-10-29 15:44:32 +0100

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 20:19:57 +0100 )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 15:34:12 +0100 )edit

1 Answer

Sort by » oldest newest most voted
2

answered 2019-11-05 15:52:29 +0100

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 15:44:32 +0100

Seen: 278 times

Last updated: Nov 05 '19