 
 
 
 
 
   
 is prime if and only if
for every
 is prime if and only if
for every 
 ,
,
 
Thus if 
 and, e.g.,
 and, e.g., 
 , then
we have proved that
, then
we have proved that  is not prime.  If, however,
 is not prime.  If, however,
 for a couple of
 for a couple of  , then it is ``highly likely''
that
, then it is ``highly likely''
that  is prime.  I will not analyze this probability here, but
we might later in this course.
 is prime.  I will not analyze this probability here, but
we might later in this course. 
 .  Is
.  Is  prime?
Let's compute
 prime?
Let's compute 
 modulo
 modulo  .  Making a table as above, we have
.  Making a table as above, we have
|   |   |   |  mod 323 | 
| 0 | 322 | 0 | 2 | 
| 1 | 161 | 1 | 4 | 
| 2 | 80 | 0 | 16 | 
| 3 | 40 | 0 | 256 | 
| 4 | 20 | 0 | 290 | 
| 5 | 10 | 0 | 120 | 
| 6 | 5 | 1 | 188 | 
| 7 | 2 | 0 | 137 | 
| 8 | 1 | 1 | 35 | 
 
 is not prime.  In fact,
 is not prime.  In fact, 
 .
.It's possible to prove that a large number is composite, but yet be unable to (easily) find a factorization! For example if
 
 , so
, so  is composite.
This is something one could verify in a reasonable amount
of time by hand.  (Though finding a factorization by hand 
would be very difficult!)
 is composite.
This is something one could verify in a reasonable amount
of time by hand.  (Though finding a factorization by hand 
would be very difficult!)
 
 
 
 
