prime_pi gives wrong output

53 views
Skip to first unread message

Martin Zeman

unread,
Nov 12, 2021, 2:49:24 PM11/12/21
to sage-devel
Hello,

prime_pi(281474961965055) gives correct output 8731188419994.

prime_pi(281474961965056)  gives wrong result 8731188419993.

Please note that second input is greater than first, however it produces smaller number of primes. The second output is obviously wrong.  

It was tested on CoCalc.com free trial and the bug is easily reproducible.

Should I open the ticket? Is it a known error?

Thanks

Martin Zeman

dmo...@deductivepress.ca

unread,
Nov 12, 2021, 3:27:39 PM11/12/21
to sage-devel
This is a known bug. The additional example could be added as a comment on trac ticket #24960.
Reply all
Reply to author
Forward
0 new messages