Repository: sympy/sympy

Issue:
oo.is_prime is not False
`oo.is_prime` should be False, I guess, and same with `zoo.is_prime`.

Discussion:

Patch:
diff --git a/doc/src/install.rst b/doc/src/install.rst
index 7a67b2d296..e281939c48 100644
--- a/doc/src/install.rst
+++ b/doc/src/install.rst
@@ -3,12 +3,12 @@
 Installation
 ------------
 
-The SymPy CAS can be installed on virtually any computer with Python
-2.6 or above. SymPy does require `mpmath`_ Python library to be
-installed first.  The current recommended method of installation is
-directly from the source files.  Alternatively, executables are
-available for Windows, and some Linux distributions have SymPy
-packages available.
+The SymPy CAS can be installed on virtually any computer with Python 2.6 or
+above. SymPy does not require any special Python modules: let us know if you
+have any problems with SymPy on a standard Python install. The current
+recommended method of installation is directly from the source files.
+Alternatively, executables are available for Windows, and some Linux
+distributions have SymPy packages available.
 
 SymPy officially supports Python 2.6, 2.7, 3.2, 3.3, 3.4, and PyPy.
 
@@ -120,4 +120,3 @@ an `issue ticket`_.
 .. _Gitter: https://gitter.im/sympy/sympy
 .. _issue ticket: https://github.com/sympy/sympy/issues
 .. _mailing list: http://groups.google.com/group/sympy
-.. _mpmath: http://mpmath.org/
diff --git a/sympy/core/numbers.py b/sympy/core/numbers.py
index 6f0411cf8d..abbb6aacb7 100644
--- a/sympy/core/numbers.py
+++ b/sympy/core/numbers.py
@@ -2267,6 +2267,7 @@ class Infinity(with_metaclass(Singleton, Number)):
     is_positive = True
     is_infinite = True
     is_number = True
+    is_prime = False
 
     __slots__ = []
 
@@ -2828,6 +2829,7 @@ class ComplexInfinity(with_metaclass(Singleton, AtomicExpr)):
     is_commutative = True
     is_infinite = True
     is_number = True
+    is_prime = False
 
     __slots__ = []
 


Test patch:
diff --git a/sympy/core/tests/test_assumptions.py b/sympy/core/tests/test_assumptions.py
index 0d6d9b5086..81e87efdc9 100644
--- a/sympy/core/tests/test_assumptions.py
+++ b/sympy/core/tests/test_assumptions.py
@@ -119,7 +119,7 @@ def test_infinity():
     assert oo.is_finite is False
     assert oo.is_infinite is True
     assert oo.is_comparable is True
-    assert oo.is_prime is None
+    assert oo.is_prime is False
     assert oo.is_composite is None
     assert oo.is_number is True