MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  139prm Structured version   Visualization version   Unicode version

Theorem 139prm 15831
Description: 139 is a prime number. (Contributed by Mario Carneiro, 19-Feb-2014.) (Proof shortened by Mario Carneiro, 20-Apr-2015.)
Assertion
Ref Expression
139prm  |- ;; 1 3 9  e.  Prime

Proof of Theorem 139prm
StepHypRef Expression
1 1nn0 11308 . . . 4  |-  1  e.  NN0
2 3nn0 11310 . . . 4  |-  3  e.  NN0
31, 2deccl 11512 . . 3  |- ; 1 3  e.  NN0
4 9nn 11192 . . 3  |-  9  e.  NN
53, 4decnncl 11518 . 2  |- ;; 1 3 9  e.  NN
6 8nn0 11315 . . 3  |-  8  e.  NN0
7 4nn0 11311 . . 3  |-  4  e.  NN0
8 9nn0 11316 . . 3  |-  9  e.  NN0
9 1lt8 11221 . . 3  |-  1  <  8
10 3lt10 11679 . . 3  |-  3  < ; 1
0
11 9lt10 11673 . . 3  |-  9  < ; 1
0
121, 6, 2, 7, 8, 1, 9, 10, 113decltc 11538 . 2  |- ;; 1 3 9  < ;; 8 4 1
13 3nn 11186 . . . 4  |-  3  e.  NN
141, 13decnncl 11518 . . 3  |- ; 1 3  e.  NN
15 1lt10 11681 . . 3  |-  1  < ; 1
0
1614, 8, 1, 15declti 11546 . 2  |-  1  < ;; 1 3 9
17 4t2e8 11181 . . 3  |-  ( 4  x.  2 )  =  8
18 df-9 11086 . . 3  |-  9  =  ( 8  +  1 )
193, 7, 17, 18dec2dvds 15767 . 2  |-  -.  2  || ;; 1 3 9
20 6nn0 11313 . . . 4  |-  6  e.  NN0
217, 20deccl 11512 . . 3  |- ; 4 6  e.  NN0
22 1nn 11031 . . 3  |-  1  e.  NN
23 0nn0 11307 . . . 4  |-  0  e.  NN0
24 eqid 2622 . . . 4  |- ; 4 6  = ; 4 6
251dec0h 11522 . . . 4  |-  1  = ; 0 1
26 ax-1cn 9994 . . . . . . 7  |-  1  e.  CC
2726addid2i 10224 . . . . . 6  |-  ( 0  +  1 )  =  1
2827oveq2i 6661 . . . . 5  |-  ( ( 3  x.  4 )  +  ( 0  +  1 ) )  =  ( ( 3  x.  4 )  +  1 )
29 2nn0 11309 . . . . . 6  |-  2  e.  NN0
30 2p1e3 11151 . . . . . 6  |-  ( 2  +  1 )  =  3
317nn0cni 11304 . . . . . . 7  |-  4  e.  CC
32 3cn 11095 . . . . . . 7  |-  3  e.  CC
33 4t3e12 11632 . . . . . . 7  |-  ( 4  x.  3 )  = ; 1
2
3431, 32, 33mulcomli 10047 . . . . . 6  |-  ( 3  x.  4 )  = ; 1
2
351, 29, 30, 34decsuc 11535 . . . . 5  |-  ( ( 3  x.  4 )  +  1 )  = ; 1
3
3628, 35eqtri 2644 . . . 4  |-  ( ( 3  x.  4 )  +  ( 0  +  1 ) )  = ; 1
3
37 8p1e9 11158 . . . . 5  |-  ( 8  +  1 )  =  9
3820nn0cni 11304 . . . . . 6  |-  6  e.  CC
39 6t3e18 11642 . . . . . 6  |-  ( 6  x.  3 )  = ; 1
8
4038, 32, 39mulcomli 10047 . . . . 5  |-  ( 3  x.  6 )  = ; 1
8
411, 6, 37, 40decsuc 11535 . . . 4  |-  ( ( 3  x.  6 )  +  1 )  = ; 1
9
427, 20, 23, 1, 24, 25, 2, 8, 1, 36, 41decma2c 11568 . . 3  |-  ( ( 3  x. ; 4 6 )  +  1 )  = ;; 1 3 9
43 1lt3 11196 . . 3  |-  1  <  3
4413, 21, 22, 42, 43ndvdsi 15136 . 2  |-  -.  3  || ;; 1 3 9
45 4nn 11187 . . 3  |-  4  e.  NN
46 4lt5 11200 . . 3  |-  4  <  5
47 5p4e9 11167 . . 3  |-  ( 5  +  4 )  =  9
483, 45, 46, 47dec5dvds2 15769 . 2  |-  -.  5  || ;; 1 3 9
49 7nn 11190 . . 3  |-  7  e.  NN
501, 8deccl 11512 . . 3  |- ; 1 9  e.  NN0
51 6nn 11189 . . 3  |-  6  e.  NN
52 eqid 2622 . . . 4  |- ; 1 9  = ; 1 9
5320dec0h 11522 . . . 4  |-  6  = ; 0 6
54 7nn0 11314 . . . 4  |-  7  e.  NN0
55 7cn 11104 . . . . . . 7  |-  7  e.  CC
5655mulid1i 10042 . . . . . 6  |-  ( 7  x.  1 )  =  7
5738addid2i 10224 . . . . . 6  |-  ( 0  +  6 )  =  6
5856, 57oveq12i 6662 . . . . 5  |-  ( ( 7  x.  1 )  +  ( 0  +  6 ) )  =  ( 7  +  6 )
59 7p6e13 11608 . . . . 5  |-  ( 7  +  6 )  = ; 1
3
6058, 59eqtri 2644 . . . 4  |-  ( ( 7  x.  1 )  +  ( 0  +  6 ) )  = ; 1
3
61 9cn 11108 . . . . . 6  |-  9  e.  CC
62 9t7e63 11668 . . . . . 6  |-  ( 9  x.  7 )  = ; 6
3
6361, 55, 62mulcomli 10047 . . . . 5  |-  ( 7  x.  9 )  = ; 6
3
64 6p3e9 11170 . . . . . 6  |-  ( 6  +  3 )  =  9
6538, 32, 64addcomli 10228 . . . . 5  |-  ( 3  +  6 )  =  9
6620, 2, 20, 63, 65decaddi 11579 . . . 4  |-  ( ( 7  x.  9 )  +  6 )  = ; 6
9
671, 8, 23, 20, 52, 53, 54, 8, 20, 60, 66decma2c 11568 . . 3  |-  ( ( 7  x. ; 1 9 )  +  6 )  = ;; 1 3 9
68 6lt7 11209 . . 3  |-  6  <  7
6949, 50, 51, 67, 68ndvdsi 15136 . 2  |-  -.  7  || ;; 1 3 9
701, 22decnncl 11518 . . 3  |- ; 1 1  e.  NN
711, 29deccl 11512 . . 3  |- ; 1 2  e.  NN0
72 eqid 2622 . . . 4  |- ; 1 2  = ; 1 2
7354dec0h 11522 . . . 4  |-  7  = ; 0 7
741, 1deccl 11512 . . . 4  |- ; 1 1  e.  NN0
75 2cn 11091 . . . . . . 7  |-  2  e.  CC
7675addid2i 10224 . . . . . 6  |-  ( 0  +  2 )  =  2
7776oveq2i 6661 . . . . 5  |-  ( (; 1
1  x.  1 )  +  ( 0  +  2 ) )  =  ( (; 1 1  x.  1 )  +  2 )
7870nncni 11030 . . . . . . 7  |- ; 1 1  e.  CC
7978mulid1i 10042 . . . . . 6  |-  (; 1 1  x.  1 )  = ; 1 1
80 1p2e3 11152 . . . . . 6  |-  ( 1  +  2 )  =  3
811, 1, 29, 79, 80decaddi 11579 . . . . 5  |-  ( (; 1
1  x.  1 )  +  2 )  = ; 1
3
8277, 81eqtri 2644 . . . 4  |-  ( (; 1
1  x.  1 )  +  ( 0  +  2 ) )  = ; 1
3
83 eqid 2622 . . . . 5  |- ; 1 1  = ; 1 1
8475mulid2i 10043 . . . . . . 7  |-  ( 1  x.  2 )  =  2
85 00id 10211 . . . . . . 7  |-  ( 0  +  0 )  =  0
8684, 85oveq12i 6662 . . . . . 6  |-  ( ( 1  x.  2 )  +  ( 0  +  0 ) )  =  ( 2  +  0 )
8775addid1i 10223 . . . . . 6  |-  ( 2  +  0 )  =  2
8886, 87eqtri 2644 . . . . 5  |-  ( ( 1  x.  2 )  +  ( 0  +  0 ) )  =  2
8984oveq1i 6660 . . . . . 6  |-  ( ( 1  x.  2 )  +  7 )  =  ( 2  +  7 )
90 7p2e9 11172 . . . . . . 7  |-  ( 7  +  2 )  =  9
9155, 75, 90addcomli 10228 . . . . . 6  |-  ( 2  +  7 )  =  9
928dec0h 11522 . . . . . 6  |-  9  = ; 0 9
9389, 91, 923eqtri 2648 . . . . 5  |-  ( ( 1  x.  2 )  +  7 )  = ; 0
9
941, 1, 23, 54, 83, 73, 29, 8, 23, 88, 93decmac 11566 . . . 4  |-  ( (; 1
1  x.  2 )  +  7 )  = ; 2
9
951, 29, 23, 54, 72, 73, 74, 8, 29, 82, 94decma2c 11568 . . 3  |-  ( (; 1
1  x. ; 1 2 )  +  7 )  = ;; 1 3 9
96 7lt10 11675 . . . 4  |-  7  < ; 1
0
9722, 1, 54, 96declti 11546 . . 3  |-  7  < ; 1
1
9870, 71, 49, 95, 97ndvdsi 15136 . 2  |-  -. ; 1 1  || ;; 1 3 9
99 10nn0 11516 . . 3  |- ; 1 0  e.  NN0
100 eqid 2622 . . . 4  |- ; 1 0  = ; 1 0
101 eqid 2622 . . . . 5  |- ; 1 3  = ; 1 3
10223dec0h 11522 . . . . . 6  |-  0  = ; 0 0
10385, 102eqtri 2644 . . . . 5  |-  ( 0  +  0 )  = ; 0
0
10426mulid1i 10042 . . . . . . 7  |-  ( 1  x.  1 )  =  1
105104, 85oveq12i 6662 . . . . . 6  |-  ( ( 1  x.  1 )  +  ( 0  +  0 ) )  =  ( 1  +  0 )
10626addid1i 10223 . . . . . 6  |-  ( 1  +  0 )  =  1
107105, 106eqtri 2644 . . . . 5  |-  ( ( 1  x.  1 )  +  ( 0  +  0 ) )  =  1
10832mulid1i 10042 . . . . . . 7  |-  ( 3  x.  1 )  =  3
109108oveq1i 6660 . . . . . 6  |-  ( ( 3  x.  1 )  +  0 )  =  ( 3  +  0 )
11032addid1i 10223 . . . . . 6  |-  ( 3  +  0 )  =  3
1112dec0h 11522 . . . . . 6  |-  3  = ; 0 3
112109, 110, 1113eqtri 2648 . . . . 5  |-  ( ( 3  x.  1 )  +  0 )  = ; 0
3
1131, 2, 23, 23, 101, 103, 1, 2, 23, 107, 112decmac 11566 . . . 4  |-  ( (; 1
3  x.  1 )  +  ( 0  +  0 ) )  = ; 1
3
1143nn0cni 11304 . . . . . . 7  |- ; 1 3  e.  CC
115114mul01i 10226 . . . . . 6  |-  (; 1 3  x.  0 )  =  0
116115oveq1i 6660 . . . . 5  |-  ( (; 1
3  x.  0 )  +  9 )  =  ( 0  +  9 )
11761addid2i 10224 . . . . 5  |-  ( 0  +  9 )  =  9
118116, 117, 923eqtri 2648 . . . 4  |-  ( (; 1
3  x.  0 )  +  9 )  = ; 0
9
1191, 23, 23, 8, 100, 92, 3, 8, 23, 113, 118decma2c 11568 . . 3  |-  ( (; 1
3  x. ; 1 0 )  +  9 )  = ;; 1 3 9
12022, 2, 8, 11declti 11546 . . 3  |-  9  < ; 1
3
12114, 99, 4, 119, 120ndvdsi 15136 . 2  |-  -. ; 1 3  || ;; 1 3 9
1221, 49decnncl 11518 . . 3  |- ; 1 7  e.  NN
123 eqid 2622 . . . 4  |- ; 1 7  = ; 1 7
124 5nn0 11312 . . . 4  |-  5  e.  NN0
125 8cn 11106 . . . . . . 7  |-  8  e.  CC
126125mulid2i 10043 . . . . . 6  |-  ( 1  x.  8 )  =  8
127 5cn 11100 . . . . . . 7  |-  5  e.  CC
128127addid2i 10224 . . . . . 6  |-  ( 0  +  5 )  =  5
129126, 128oveq12i 6662 . . . . 5  |-  ( ( 1  x.  8 )  +  ( 0  +  5 ) )  =  ( 8  +  5 )
130 8p5e13 11615 . . . . 5  |-  ( 8  +  5 )  = ; 1
3
131129, 130eqtri 2644 . . . 4  |-  ( ( 1  x.  8 )  +  ( 0  +  5 ) )  = ; 1
3
132 8t7e56 11661 . . . . . 6  |-  ( 8  x.  7 )  = ; 5
6
133125, 55, 132mulcomli 10047 . . . . 5  |-  ( 7  x.  8 )  = ; 5
6
134124, 20, 2, 133, 64decaddi 11579 . . . 4  |-  ( ( 7  x.  8 )  +  3 )  = ; 5
9
1351, 54, 23, 2, 123, 111, 6, 8, 124, 131, 134decmac 11566 . . 3  |-  ( (; 1
7  x.  8 )  +  3 )  = ;; 1 3 9
13622, 54, 2, 10declti 11546 . . 3  |-  3  < ; 1
7
137122, 6, 13, 135, 136ndvdsi 15136 . 2  |-  -. ; 1 7  || ;; 1 3 9
1381, 4decnncl 11518 . . 3  |- ; 1 9  e.  NN
13955mulid2i 10043 . . . . . 6  |-  ( 1  x.  7 )  =  7
140139, 57oveq12i 6662 . . . . 5  |-  ( ( 1  x.  7 )  +  ( 0  +  6 ) )  =  ( 7  +  6 )
141140, 59eqtri 2644 . . . 4  |-  ( ( 1  x.  7 )  +  ( 0  +  6 ) )  = ; 1
3
14220, 2, 20, 62, 65decaddi 11579 . . . 4  |-  ( ( 9  x.  7 )  +  6 )  = ; 6
9
1431, 8, 23, 20, 52, 53, 54, 8, 20, 141, 142decmac 11566 . . 3  |-  ( (; 1
9  x.  7 )  +  6 )  = ;; 1 3 9
144 6lt10 11676 . . . 4  |-  6  < ; 1
0
14522, 8, 20, 144declti 11546 . . 3  |-  6  < ; 1
9
146138, 54, 51, 143, 145ndvdsi 15136 . 2  |-  -. ; 1 9  || ;; 1 3 9
14729, 13decnncl 11518 . . 3  |- ; 2 3  e.  NN
148 eqid 2622 . . . 4  |- ; 2 3  = ; 2 3
149 6t2e12 11641 . . . . . 6  |-  ( 6  x.  2 )  = ; 1
2
15038, 75, 149mulcomli 10047 . . . . 5  |-  ( 2  x.  6 )  = ; 1
2
1511, 29, 30, 150decsuc 11535 . . . 4  |-  ( ( 2  x.  6 )  +  1 )  = ; 1
3
15229, 2, 1, 148, 20, 8, 1, 151, 41decrmac 11577 . . 3  |-  ( (; 2
3  x.  6 )  +  1 )  = ;; 1 3 9
153 2nn 11185 . . . 4  |-  2  e.  NN
154153, 2, 1, 15declti 11546 . . 3  |-  1  < ; 2
3
155147, 20, 22, 152, 154ndvdsi 15136 . 2  |-  -. ; 2 3  || ;; 1 3 9
1565, 12, 16, 19, 44, 48, 69, 98, 121, 137, 146, 155prmlem2 15827 1  |- ;; 1 3 9  e.  Prime
Colors of variables: wff setvar class
Syntax hints:    e. wcel 1990  (class class class)co 6650   0cc0 9936   1c1 9937    + caddc 9939    x. cmul 9941   2c2 11070   3c3 11071   4c4 11072   5c5 11073   6c6 11074   7c7 11075   8c8 11076   9c9 11077  ;cdc 11493   Primecprime 15385
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1722  ax-4 1737  ax-5 1839  ax-6 1888  ax-7 1935  ax-8 1992  ax-9 1999  ax-10 2019  ax-11 2034  ax-12 2047  ax-13 2246  ax-ext 2602  ax-sep 4781  ax-nul 4789  ax-pow 4843  ax-pr 4906  ax-un 6949  ax-cnex 9992  ax-resscn 9993  ax-1cn 9994  ax-icn 9995  ax-addcl 9996  ax-addrcl 9997  ax-mulcl 9998  ax-mulrcl 9999  ax-mulcom 10000  ax-addass 10001  ax-mulass 10002  ax-distr 10003  ax-i2m1 10004  ax-1ne0 10005  ax-1rid 10006  ax-rnegex 10007  ax-rrecex 10008  ax-cnre 10009  ax-pre-lttri 10010  ax-pre-lttrn 10011  ax-pre-ltadd 10012  ax-pre-mulgt0 10013  ax-pre-sup 10014
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3or 1038  df-3an 1039  df-tru 1486  df-ex 1705  df-nf 1710  df-sb 1881  df-eu 2474  df-mo 2475  df-clab 2609  df-cleq 2615  df-clel 2618  df-nfc 2753  df-ne 2795  df-nel 2898  df-ral 2917  df-rex 2918  df-reu 2919  df-rmo 2920  df-rab 2921  df-v 3202  df-sbc 3436  df-csb 3534  df-dif 3577  df-un 3579  df-in 3581  df-ss 3588  df-pss 3590  df-nul 3916  df-if 4087  df-pw 4160  df-sn 4178  df-pr 4180  df-tp 4182  df-op 4184  df-uni 4437  df-iun 4522  df-br 4654  df-opab 4713  df-mpt 4730  df-tr 4753  df-id 5024  df-eprel 5029  df-po 5035  df-so 5036  df-fr 5073  df-we 5075  df-xp 5120  df-rel 5121  df-cnv 5122  df-co 5123  df-dm 5124  df-rn 5125  df-res 5126  df-ima 5127  df-pred 5680  df-ord 5726  df-on 5727  df-lim 5728  df-suc 5729  df-iota 5851  df-fun 5890  df-fn 5891  df-f 5892  df-f1 5893  df-fo 5894  df-f1o 5895  df-fv 5896  df-riota 6611  df-ov 6653  df-oprab 6654  df-mpt2 6655  df-om 7066  df-1st 7168  df-2nd 7169  df-wrecs 7407  df-recs 7468  df-rdg 7506  df-1o 7560  df-2o 7561  df-er 7742  df-en 7956  df-dom 7957  df-sdom 7958  df-fin 7959  df-sup 8348  df-inf 8349  df-pnf 10076  df-mnf 10077  df-xr 10078  df-ltxr 10079  df-le 10080  df-sub 10268  df-neg 10269  df-div 10685  df-nn 11021  df-2 11079  df-3 11080  df-4 11081  df-5 11082  df-6 11083  df-7 11084  df-8 11085  df-9 11086  df-n0 11293  df-z 11378  df-dec 11494  df-uz 11688  df-rp 11833  df-fz 12327  df-seq 12802  df-exp 12861  df-cj 13839  df-re 13840  df-im 13841  df-sqrt 13975  df-abs 13976  df-dvds 14984  df-prm 15386
This theorem is referenced by:  2503prm  15847
  Copyright terms: Public domain W3C validator