Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Why is_prime(6/3) results as False?

sage: (6/3).is_integer()

True

sage: (6/3).is_prime()

False

Why is_prime(6/3) results as False?

sage: (6/3).is_integer()

(6/3).is_integer() True

True

sage: (6/3).is_prime()

False

(6/3).is_prime() False