Skip to content
@collatz-prefixes

Collatz Prefixes

An umbrella account for my Collatz Conjecture works.

Collatz Prefixes

A pattern among hailstone numbers. Read the Gitbook for the theory.

Implementing the theory in code is a simple & fun side-project, and a great excuse to try a new language. As such, I have implemented Collatz Prefixes in a few languages:

At it's current state, the Rust implementation is the most performant (not a surprise).

Why is it a great excuse as said above? Here are a few reasons in my opinion:

  • It has use-cases for bitwise operations.
  • It makes use of both pass-by-value and pass-by-reference.
  • It has static and dynamic arrays.
  • It has well-defined and simple test cases.
  • It makes use of bigints if possible.
  • It provides a good excuse to separate code into modules, both public and private.

Pinned Loading

  1. collatz-prefixes-go collatz-prefixes-go Public

    Golang implementation of Collatz Prefixes

    Go

  2. collatz-prefixes-haskell collatz-prefixes-haskell Public

    Haskell implementation of Collatz Prefixes

    Haskell

  3. collatz-prefixes-cplusplus collatz-prefixes-cplusplus Public

    C++ implementation of Collatz Prefixes

    C++

  4. collatz-prefixes-typescript collatz-prefixes-typescript Public

    TypeScript implementation of Collatz Prefixes

    TypeScript

  5. collatz-prefixes-rust collatz-prefixes-rust Public

    Rust implementation of Collatz Prefixes

    Rust

Repositories

Showing 6 of 6 repositories
  • collatz-prefixes-typescript Public

    TypeScript implementation of Collatz Prefixes

    collatz-prefixes/collatz-prefixes-typescript’s past year of commit activity
    TypeScript 0 MIT 0 0 0 Updated Jul 16, 2023
  • collatz-prefixes-go Public

    Golang implementation of Collatz Prefixes

    collatz-prefixes/collatz-prefixes-go’s past year of commit activity
    Go 0 MIT 0 0 0 Updated Jul 6, 2023
  • collatz-prefixes-rust Public

    Rust implementation of Collatz Prefixes

    collatz-prefixes/collatz-prefixes-rust’s past year of commit activity
    Rust 0 MIT 0 0 0 Updated Jul 6, 2023
  • .github Public
    collatz-prefixes/.github’s past year of commit activity
    0 0 0 0 Updated Jul 4, 2023
  • collatz-prefixes-cplusplus Public

    C++ implementation of Collatz Prefixes

    collatz-prefixes/collatz-prefixes-cplusplus’s past year of commit activity
    C++ 0 MIT 0 0 0 Updated Mar 24, 2023
  • collatz-prefixes-haskell Public

    Haskell implementation of Collatz Prefixes

    collatz-prefixes/collatz-prefixes-haskell’s past year of commit activity
    Haskell 0 MIT 0 0 0 Updated Mar 24, 2023

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…