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

Theorem 1259prm 17097
Description: 1259 is a prime number. (Contributed by Mario Carneiro, 22-Feb-2014.) (Proof shortened by Mario Carneiro, 20-Apr-2015.)
Hypothesis
Ref Expression
1259prm.1 𝑁 = 1259
Assertion
Ref Expression
1259prm 𝑁 ∈ ℙ

Proof of Theorem 1259prm
StepHypRef Expression
1 37prm 17082 . 2 37 ∈ ℙ
2 3nn0 12446 . . 3 3 ∈ ℕ0
3 4nn 12255 . . 3 4 ∈ ℕ
42, 3decnncl 12655 . 2 34 ∈ ℕ
5 1nn0 12444 . . . . . . . 8 1 ∈ ℕ0
6 2nn0 12445 . . . . . . . 8 2 ∈ ℕ0
75, 6deccl 12650 . . . . . . 7 12 ∈ ℕ0
8 5nn0 12448 . . . . . . 7 5 ∈ ℕ0
97, 8deccl 12650 . . . . . 6 125 ∈ ℕ0
10 8nn0 12451 . . . . . 6 8 ∈ ℕ0
119, 10deccl 12650 . . . . 5 1258 ∈ ℕ0
1211nn0cni 12440 . . . 4 1258 ∈ ℂ
13 ax-1cn 11087 . . . 4 1 ∈ ℂ
14 1259prm.1 . . . . 5 𝑁 = 1259
15 eqid 2737 . . . . . 6 1258 = 1258
16 8p1e9 12317 . . . . . 6 (8 + 1) = 9
179, 10, 5, 15, 16decaddi 12695 . . . . 5 (1258 + 1) = 1259
1814, 17eqtr4i 2763 . . . 4 𝑁 = (1258 + 1)
1912, 13, 18mvrraddi 11401 . . 3 (𝑁 − 1) = 1258
20 4nn0 12447 . . . . 5 4 ∈ ℕ0
212, 20deccl 12650 . . . 4 34 ∈ ℕ0
22 7nn0 12450 . . . 4 7 ∈ ℕ0
23 eqid 2737 . . . 4 37 = 37
246, 2deccl 12650 . . . 4 23 ∈ ℕ0
25 eqid 2737 . . . . 5 34 = 34
26 eqid 2737 . . . . 5 23 = 23
27 3t3e9 12334 . . . . . . 7 (3 · 3) = 9
28 2p1e3 12309 . . . . . . 7 (2 + 1) = 3
2927, 28oveq12i 7372 . . . . . 6 ((3 · 3) + (2 + 1)) = (9 + 3)
30 9p3e12 12723 . . . . . 6 (9 + 3) = 12
3129, 30eqtri 2760 . . . . 5 ((3 · 3) + (2 + 1)) = 12
32 4t3e12 12733 . . . . . 6 (4 · 3) = 12
33 3cn 12253 . . . . . . 7 3 ∈ ℂ
34 2cn 12247 . . . . . . 7 2 ∈ ℂ
35 3p2e5 12318 . . . . . . 7 (3 + 2) = 5
3633, 34, 35addcomli 11329 . . . . . 6 (2 + 3) = 5
375, 6, 2, 32, 36decaddi 12695 . . . . 5 ((4 · 3) + 3) = 15
382, 20, 6, 2, 25, 26, 2, 8, 5, 31, 37decmac 12687 . . . 4 ((34 · 3) + 23) = 125
39 7cn 12266 . . . . . . 7 7 ∈ ℂ
40 7t3e21 12745 . . . . . . 7 (7 · 3) = 21
4139, 33, 40mulcomli 11145 . . . . . 6 (3 · 7) = 21
42 1p2e3 12310 . . . . . 6 (1 + 2) = 3
436, 5, 6, 41, 42decaddi 12695 . . . . 5 ((3 · 7) + 2) = 23
44 4cn 12257 . . . . . 6 4 ∈ ℂ
45 7t4e28 12746 . . . . . 6 (7 · 4) = 28
4639, 44, 45mulcomli 11145 . . . . 5 (4 · 7) = 28
4722, 2, 20, 25, 10, 6, 43, 46decmul1c 12700 . . . 4 (34 · 7) = 238
4821, 2, 22, 23, 10, 24, 38, 47decmul2c 12701 . . 3 (34 · 37) = 1258
4919, 48eqtr4i 2763 . 2 (𝑁 − 1) = (34 · 37)
50 9nn0 12452 . . . . . . 7 9 ∈ ℕ0
519, 50deccl 12650 . . . . . 6 1259 ∈ ℕ0
5214, 51eqeltri 2833 . . . . 5 𝑁 ∈ ℕ0
5352nn0cni 12440 . . . 4 𝑁 ∈ ℂ
54 npcan 11393 . . . 4 ((𝑁 ∈ ℂ ∧ 1 ∈ ℂ) → ((𝑁 − 1) + 1) = 𝑁)
5553, 13, 54mp2an 693 . . 3 ((𝑁 − 1) + 1) = 𝑁
5655eqcomi 2746 . 2 𝑁 = ((𝑁 − 1) + 1)
57 1nn 12176 . 2 1 ∈ ℕ
58 2nn 12245 . 2 2 ∈ ℕ
592, 22deccl 12650 . . . . 5 37 ∈ ℕ0
6059numexp1 17038 . . . 4 (37↑1) = 37
6160oveq2i 7371 . . 3 (34 · (37↑1)) = (34 · 37)
6249, 61eqtr4i 2763 . 2 (𝑁 − 1) = (34 · (37↑1))
63 7nn 12264 . . . 4 7 ∈ ℕ
64 4lt7 12355 . . . 4 4 < 7
652, 20, 63, 64declt 12663 . . 3 34 < 37
6665, 60breqtrri 5113 . 2 34 < (37↑1)
67141259lem4 17095 . 2 ((2↑(𝑁 − 1)) mod 𝑁) = (1 mod 𝑁)
68141259lem5 17096 . 2 (((2↑34) − 1) gcd 𝑁) = 1
691, 4, 49, 56, 4, 57, 58, 62, 66, 67, 68pockthi 16869 1 𝑁 ∈ ℙ
Colors of variables: wff setvar class
Syntax hints:   = wceq 1542  wcel 2114  (class class class)co 7360  cc 11027  1c1 11030   + caddc 11032   · cmul 11034   < clt 11170  cmin 11368  2c2 12227  3c3 12228  4c4 12229  5c5 12230  7c7 12232  8c8 12233  9c9 12234  0cn0 12428  cdc 12635  cexp 14014  cprime 16631
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1912  ax-6 1969  ax-7 2010  ax-8 2116  ax-9 2124  ax-10 2147  ax-11 2163  ax-12 2185  ax-ext 2709  ax-rep 5212  ax-sep 5231  ax-nul 5241  ax-pow 5302  ax-pr 5370  ax-un 7682  ax-cnex 11085  ax-resscn 11086  ax-1cn 11087  ax-icn 11088  ax-addcl 11089  ax-addrcl 11090  ax-mulcl 11091  ax-mulrcl 11092  ax-mulcom 11093  ax-addass 11094  ax-mulass 11095  ax-distr 11096  ax-i2m1 11097  ax-1ne0 11098  ax-1rid 11099  ax-rnegex 11100  ax-rrecex 11101  ax-cnre 11102  ax-pre-lttri 11103  ax-pre-lttrn 11104  ax-pre-ltadd 11105  ax-pre-mulgt0 11106  ax-pre-sup 11107
This theorem depends on definitions:  df-bi 207  df-an 396  df-or 849  df-3or 1088  df-3an 1089  df-tru 1545  df-fal 1555  df-ex 1782  df-nf 1786  df-sb 2069  df-mo 2540  df-eu 2570  df-clab 2716  df-cleq 2729  df-clel 2812  df-nfc 2886  df-ne 2934  df-nel 3038  df-ral 3053  df-rex 3063  df-rmo 3343  df-reu 3344  df-rab 3391  df-v 3432  df-sbc 3730  df-csb 3839  df-dif 3893  df-un 3895  df-in 3897  df-ss 3907  df-pss 3910  df-nul 4275  df-if 4468  df-pw 4544  df-sn 4569  df-pr 4571  df-op 4575  df-uni 4852  df-int 4891  df-iun 4936  df-br 5087  df-opab 5149  df-mpt 5168  df-tr 5194  df-id 5519  df-eprel 5524  df-po 5532  df-so 5533  df-fr 5577  df-we 5579  df-xp 5630  df-rel 5631  df-cnv 5632  df-co 5633  df-dm 5634  df-rn 5635  df-res 5636  df-ima 5637  df-pred 6259  df-ord 6320  df-on 6321  df-lim 6322  df-suc 6323  df-iota 6448  df-fun 6494  df-fn 6495  df-f 6496  df-f1 6497  df-fo 6498  df-f1o 6499  df-fv 6500  df-riota 7317  df-ov 7363  df-oprab 7364  df-mpo 7365  df-om 7811  df-1st 7935  df-2nd 7936  df-frecs 8224  df-wrecs 8255  df-recs 8304  df-rdg 8342  df-1o 8398  df-2o 8399  df-oadd 8402  df-er 8636  df-en 8887  df-dom 8888  df-sdom 8889  df-fin 8890  df-sup 9348  df-inf 9349  df-dju 9816  df-card 9854  df-pnf 11172  df-mnf 11173  df-xr 11174  df-ltxr 11175  df-le 11176  df-sub 11370  df-neg 11371  df-div 11799  df-nn 12166  df-2 12235  df-3 12236  df-4 12237  df-5 12238  df-6 12239  df-7 12240  df-8 12241  df-9 12242  df-n0 12429  df-xnn0 12502  df-z 12516  df-dec 12636  df-uz 12780  df-q 12890  df-rp 12934  df-fz 13453  df-fzo 13600  df-fl 13742  df-mod 13820  df-seq 13955  df-exp 14015  df-hash 14284  df-cj 15052  df-re 15053  df-im 15054  df-sqrt 15188  df-abs 15189  df-dvds 16213  df-gcd 16455  df-prm 16632  df-odz 16726  df-phi 16727  df-pc 16799
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator