-
-
Notifications
You must be signed in to change notification settings - Fork 655
Closed
Milestone
Description
The following will be confusing to casual users of Sage:
sage: p = (2^4-1)/3
sage: p
5
sage: is_prime(p)
False
sage: p.is_prime()
False
As suggested on https://groups.google.com/forum/#!topic/sage-devel/NN0VP-OVZLw, we should show a warning when a function like is_prime
is called in such a context. The seems to arise most frequently for fields, where general definitions necessitate a certain answer, but that answer is not consistent with subrings where the question has more arithmetic interest.
CC: @kcrisman
Component: user interface
Author: Lorenz Panny
Branch/Commit: c6a47f2
Reviewer: Kwankyu Lee
Issue created by migration from https://trac.sagemath.org/ticket/25046