File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -262,17 +262,11 @@ Qed.
262262
263263(* Some facts about circular numbers in base 10 *)
264264
265- (* Uglu trick to get large number *)
266- Fixpoint myadd m n := if m is m1.+1 then myadd m1 n.+1 else n.
267- Fixpoint mymul3 m n p :=
268- if m is m1.+1 then mymul3 m1 n (myadd n p) else p.
269- Definition mymul m n := mymul3 m n 0.
270- Definition get_num l := foldr (fun i r => myadd i (mymul 10 r)) 0 (rev l).
271265
272- Let v11939 := Eval compute in get_num [::1; 1; 9; 3; 9] .
273- Let v19937 := Eval compute in get_num [::1; 9; 9; 3; 7] .
274- Let v193939 := Eval compute in get_num [:: 1; 9; 3; 9; 3; 9] .
275- Let v199933 := Eval compute in get_num [:: 1; 9; 9; 9; 3; 3] .
266+ Let v11939 := Eval compute in N.to_nat 11939 .
267+ Let v19937 := Eval compute in N.to_nat 19937 .
268+ Let v193939 := N.to_nat 193939 .
269+ Let v199933 := N.to_nat 199933 .
276270
277271(* the first circular primes in base 10 *)
278272Lemma first_ten_cprimes :
You can’t perform that action at this time.
0 commit comments