10001th prime: Difference between revisions

(→‎bc: add)
(→‎OCaml: add)
Line 536:
104743
</pre>
 
=={{header|OCaml}}==
Using the function <code>seq_primes</code> from [[Extensible prime generator#OCaml]]:
<syntaxhighlight lang="ocaml">let () =
seq_primes |> Seq.drop 10000 |> Seq.take 1 |> Seq.iter (Printf.printf "%u\n")</syntaxhighlight>
{{out}}
<pre>104743</pre>
 
=={{header|PARI/GP}}==
559

edits