Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
3
Task/Additive-primes/F-Sharp/additive-primes.fs
Normal file
3
Task/Additive-primes/F-Sharp/additive-primes.fs
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
// Additive Primes. Nigel Galloway: March 22nd., 2021
|
||||
let rec fN g=function n when n<10->n+g |n->fN(g+n%10)(n/10)
|
||||
primes32()|>Seq.takeWhile((>)500)|>Seq.filter(fN 0>>isPrime)|>Seq.iter(printf "%d "); printfn ""
|
||||
Loading…
Add table
Add a link
Reference in a new issue