ranjanistic / collatz-conjecture

Collatz Conjecture implementation in various languages and or environments.

Home Page:https://ranjanistic.github.io/collatz-conjecture/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Collatz Conjecture

This repository contains programs to execute Collatz Conjecture in several languages & environments.

All separate language files run separately (Ofcourse).

All programs assume that the conjecture is true and hence rely their recursion on it. Recursion can fall in infinity if this conjecture is wrong at some number.

Run

g++ -std=c++11 -o index.exe index.cpp && .\index
scriptcs index.cs
go run index.go
java index.java
node index.js
python3 index.py
ruby index.rb
cargo run index.rs

Contribution

Add your own programs to this repository in other languages, with the same structure as this one. Create a new branch for your language, or complete the existing incomplete language files.

About

Collatz Conjecture implementation in various languages and or environments.

https://ranjanistic.github.io/collatz-conjecture/

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:HTML 20.4%Language:C# 18.2%Language:Java 15.7%Language:C++ 13.5%Language:JavaScript 10.1%Language:Go 9.5%Language:Python 7.4%Language:PHP 2.9%Language:CMake 1.5%Language:RenderScript 0.4%Language:Ruby 0.4%