- Corrected is_prime() results for 0, 1 and 2 (found by code coverage tests)

diff --git a/library/bignum.c b/library/bignum.c
index d1646f0..aa7230f 100644
--- a/library/bignum.c
+++ b/library/bignum.c
@@ -1683,7 +1683,11 @@
     mpi W, R, T, A, RR;
     unsigned char *p;
 
-    if( mpi_cmp_int( X, 0 ) == 0 )
+    if( mpi_cmp_int( X, 0 ) == 0 ||
+        mpi_cmp_int( X, 1 ) == 0 )
+        return( POLARSSL_ERR_MPI_NOT_ACCEPTABLE );
+
+    if( mpi_cmp_int( X, 2 ) == 0 )
         return( 0 );
 
     mpi_init( &W, &R, &T, &A, &RR, NULL );