{"version":"1.0","type":"rich","title":"Sieve","description":"This example compares four functional programming languages—OCaml, JSJS, Clojure, and Scala—each implementing the Sieve of Eratosthenes to count primes up to a given integer. The code shows recursive filtering of a list range, using language-specific constructs like OCaml’s `List.filter`, Clojure’s `loop`/`recur`, and Scala’s `def aux` with list operations. The visualization highlights syntactic and structural differences across languages, with each snippet sharing the same algorithmic logic. The data source is the inline code itself, illustrating how each language handles list generation, recursion, and modular arithmetic.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-4fc604ab24a2be8e5a090ddb13dd7093?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}