Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,6 @@
|
|||
// Generate Magnanimous numbers. Nigel Galloway: March 20th., 2020
|
||||
let rec fN n g = match (g/n,g%n) with
|
||||
(0,_) -> true
|
||||
|(α,β) when isPrime (α+β) -> fN (n*10) g
|
||||
|_ -> false
|
||||
let Magnanimous = let Magnanimous = fN 10 in seq{yield! {0..9}; yield! Seq.initInfinite id |> Seq.skip 10 |> Seq.filter Magnanimous}
|
||||
|
|
@ -0,0 +1 @@
|
|||
Magnanimous |> Seq.take 45 |> Seq.iter (printf "%d "); printfn ""
|
||||
|
|
@ -0,0 +1 @@
|
|||
Magnanimous |> Seq.skip 240 |> Seq.take 10 |> Seq.iter (printf "%d "); printfn "";;
|
||||
|
|
@ -0,0 +1 @@
|
|||
Magnanimous |> Seq.skip 390 |> Seq.take 10 |> Seq.iter (printf "%d "); printfn "";;
|
||||
Loading…
Add table
Add a link
Reference in a new issue