Skip to content

Sage 3.4.2: prime_pi() broken on 32 bit #5981

@sagetrac-mabshoff

Description

@sagetrac-mabshoff

The issue is that Integer(2^40) is evaluated to 0 on 32 bit systems (maybe due to Cython folding constants?). The attached patch uses a long constant instead. Tested to work on 32 and 64 bit boxen.

Cheers,

Michael

Component: doctest coverage

Issue created by migration from https://trac.sagemath.org/ticket/5981

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions