Recent public codes are listed below. You can filter them by the following programming languages:
- view
- All
- Ada
- Assembler
- Assembler
- AWK (gawk)
- AWK (mawk)
- Bash
- bc
- Brainf**k
- C
- C#
- C++
- C++0x
- C99 strict
- CLIPS
- Clojure
- COBOL
- COBOL 85
- Common Lisp (clisp)
- D (dmd)
- Erlang
- F#
- Factor
- Falcon
- Forth
- Fortran
- Go
- Groovy
- Haskell
- Icon
- Intercal
- Java
- Java7
- JavaScript (rhino)
- JavaScript (spidermonkey)
- Lua
- Nemerle
- Nice
- Nimrod
- Objective-C
- Ocaml
- Oz
- Pascal (fpc)
- Pascal (gpc)
- Perl
- Perl 6
- PHP
- Pike
- Prolog (gnu)
- Prolog (swi)
- Python
- Python 3
- R
- Ruby
- Scala
- Scheme (guile)
- Smalltalk
- SQL
- Tcl
- Text
- Unlambda
- VB.NET
- Whitespace
-
1 2 3 4 5 6 7 8 9
open System open System.Collections.Generic let isPrime n = List.exists (fun i -> n % i = 0) [2..(n - 1)] let recip = let cache = Dictionary<_, _>() fun n m ->
...
-
1 2 3 4 5 6 7 8 9
open System open System.Collections.Generic let isPrime n = List.exists (fun i -> n % i = 0) [2..(n - 1)] let recip = let cache = Dictionary<_, _>() fun n m ->
...
-
1 2 3 4 5 6 7 8 9
open System open System.Collections.Generic let recip = let cache = Dictionary<_, _>() fun n m -> assert (isPrime n) if cache.ContainsKey( (n, m) ) then cache.[ (n, m) ] else
...
-
1 2 3 4 5 6 7 8 9
open System open System.Collections.Generic let recip = let cache = Dictionary<_, _>() fun n m -> if cache.ContainsKey( (n, m) ) then cache.[ (n, m) ] else let res = List.find (fun a -> n * a % m = 1) [1..(m - 1)]
...
-
1 2 3 4 5 6 7 8 9
open System open System.Collections.Generic let recip = let cache = Dictionary<_, _>() fun n m -> if cache.ContainsKey( (n, m) ) then cache.[ (n, m) ] else let res = List.find (fun a -> n * a % m = 1) [1..(m - 1)]
...
-
1 2 3 4 5 6 7 8 9
open System open System.Collections.Generic let recip = let cache = Dictionary<_, _>() fun n m -> if cache.ContainsKey( (n, m) ) then cache.[ (n, m) ] else let res = List.find (fun a -> n * a % m = 1) [1..(m - 1)]
...
-
1 2 3 4 5 6 7 8 9
open System open System.Collections.Generic let recip = let cache = Dictionary<_, _>() fun n m -> if cache.ContainsKey( (n, m) ) then cache.[ (n, m) ] else let res = List.find (fun a -> n * a % m = 1) [1..(m - 1)]
...
-
1 2 3 4 5 6 7 8 9
open System open System.Collections.Generic let recip = let cache = Dictionary<_, _>() fun n m -> if cache.ContainsKey( (n, m) ) then cache.[ (n, m) ] else let res = List.find (fun a -> n * a % m = 1) [1..(m - 1)]
...
-
1 2 3 4 5 6 7 8 9
open System open System.Collections.Generic let recip = let cache = Dictionary<_, _>() fun n m -> if cache.ContainsKey( (n, m) ) then cache.[ (n, m) ] else let res = List.find (fun a -> n * a % m = 1) [1..(m - 1)]
...
-
1 2 3 4 5 6 7 8 9
open System open System.Collections.Generic let recip = let cache = Dictionary<_, _>() fun n m -> if cache.ContainsKey( (n, m) ) then cache.[ (n, m) ] else let res = List.find (fun a -> n * a % m = 1) [1..(m - 1)]
...
-
1 2 3 4 5 6 7 8 9
open System open System.Collections.Generic let recip = let cache = Dictionary<_, _>() fun n m -> if cache.ContainsKey( (n, m) ) then cache.[ (n, m) ] else let res = List.find (fun a -> n * a % m = 1) [1..(m - 1)]
...
-
1 2 3 4 5 6 7 8 9
open System open System.Collections.Generic let recip = let cache = Dictionary<_, _>() fun n m -> if cache.ContainsKey( (n, m) ) then cache.[ (n, m) ] else let res = List.find (fun a -> n * a % m = 1) [1..(m - 1)]
...
-
1 2 3 4 5 6 7 8 9
open System open System.Collections.Generic let recip = let cache = Dictionary<_, _>() fun n m -> if cache.ContainsKey( (n, m) ) then cache.[ (n, m) ] else let res = List.find (fun a -> n * a % m = 1) [1..(m - 1)]
...
-
1 2 3 4 5 6 7 8 9
open System open System.Collections.Generic let recip = let cache = Dictionary<_, _>() fun n m -> if cache.ContainsKey( (n, m) ) then cache.[ (n, m) ] else let res = List.find (fun a -> n * a % m = 1) [1..(m - 1)]
...
-
1 2 3 4 5 6 7 8 9
open System open System.Collections.Generic let recip = let cache = Dictionary<_, _>() fun n m -> if cache.ContainsKey( (n, m) ) then cache.[ (n, m) ] else let res = List.find (fun a -> n * a % m = 1) [1..(m - 1)]
...
-
1 2 3 4 5 6 7 8 9
open System open System.Collections.Generic let recip = let cache = Dictionary<_, _>() fun n m -> if cache.ContainsKey( (n, m) ) then cache.[ (n, m) ] else let res = List.find (fun a -> n * a % m = 1) [1..(m - 1)]
...
-
1 2 3 4 5 6 7 8 9
open System open System.Collections.Generic let recip = let cache = Dictionary<_, _>() fun n m -> if cache.ContainsKey( (n, m) ) then cache.[ (n, m) ] else let res = List.find (fun a -> n * a % m = 1) [1..(m - 1)]
...
-
1 2 3 4 5 6 7 8 9
open System open System.Collections.Generic let recip = let cache = Dictionary<_, _>() fun n m -> if cache.ContainsKey( (n, m) ) then cache.[ (n, m) ] else let res = List.find (fun a -> n * a % m = 1) [1..(m - 1)]
...
-
1 2 3 4 5 6 7 8 9
open System open System.Collections.Generic let recip = let cache = Dictionary<_, _>() fun n m -> if cache.ContainsKey( (n, m) ) then cache.[ (n, m) ] else let res = List.find (fun a -> n * a % m = 1) [1..(m - 1)]
...
-
1 2 3 4 5 6 7 8 9
open System open System.Collections.Generic let recip = let cache = Dictionary<_, _>() fun (n:int64) (m:int64) -> if cache.ContainsKey( (n, m) ) then cache.[ (n, m) ] else let res = List.find (fun a -> n * a % m = 1) [1..(m - 1)]
...
-
1 2 3 4 5 6 7 8 9
open System open System.Collections.Generic let recip = let cache = Dictionary<_, _>() fun n m -> if cache.ContainsKey( (n, m) ) then cache.[ (n, m) ] else let res = List.find (fun a -> n * a % m = 1) [1..(m - 1)]
...
-
1 2 3 4 5 6 7 8 9
open System open System.Collections.Generic let recip = let cache = Dictionary<_, _>() fun n m -> if cache.ContainsKey( (n, m) ) then cache.[ (n, m) ] else let res = List.find (fun a -> n * a % m = 1) [1..(m - 1)]
...
-
1 2 3 4 5 6 7 8 9
open System open System.Collections.Generic let recip = let cache = Dictionary<_, _>() fun n m -> if cache.ContainsKey( (n, m) ) then cache.[ (n, m) ] else let res = List.find (fun a -> n * a % m = 1) [1..(m - 1)]
...
-
1 2 3 4 5 6 7 8 9
open System open System.Collections.Generic let recip = let cache = Dictionary<_, _>() fun n m -> if cache.ContainsKey( (n, m) ) then cache.[ (n, m) ] else let res = List.find (fun a -> n * a % m = 1) [1..(m - 1)]
...
-
1 2 3 4 5 6 7 8 9
open System open System.Collections.Generic let recip = let cache = Dictionary<_, _>() fun n m -> if cache.ContainsKey( (n, m) ) then cache.[ (n, m) ] else let res = List.find (fun a -> n * a % m = 1) [1..(m - 1)]
...
-
1 2 3 4 5 6 7 8 9
open System open System.Collections.Generic let recip = let cache = Dictionary<_, _>() fun n m -> if cache.ContainsKey( (n, m) ) then cache.[ (n, m) ] else let res = List.find (fun a -> n * a % m = 1) [1..(m - 1)]
...
-
1 2 3 4 5 6 7 8 9
open System open System.Collections.Generic let recip = let cache = Dictionary<_, _>() fun n m -> if cache.ContainsKey( (n, m) ) then cache.[ (n, m) ] else let res = List.find (fun a -> n * a % m = 1) [1..(m - 1)]
...
-
1 2 3 4 5 6 7 8 9
open System open System.Collections.Generic let recip = let cache = Dictionary<_, _>() fun n m -> if cache.ContainsKey( (n, m) ) then cache.[ (n, m) ] else let res = List.find (fun a -> n * a % m = 1) [1..n]
...
-
1 2 3 4 5 6 7 8 9
open System open System.Collections.Generic let recip = let cache = Dictionary<_, _>() fun n m -> if cache.ContainsKey( (n, m) ) then cache.[ (n, m) ] else let res = List.find (fun a -> n * a % m = 1) [1..n]
...
-
1 2 3 4 5 6 7 8 9
open System open System.Collections.Generic let recip = let cache = Dictionary<_, _>() fun n m -> if cache.ContainsKey( (n, m) ) then cache.[ (n, m) ] else let res = List.find (fun a -> n * a % m = 1) [1..n]
...


