Problem I’m looking for some feedback on my code for the collatz function exercise in the Python book Automate the […]
Tag: collatz-sequence
Calculating the Collatz Conjecture
Problem Today I read this thing about the Collatz Conjecture and wanted to try and write a program that calculates […]
Project Euler #14 in Swift – Longest Collatz sequence
Problem I just finished Project Euler #14 in Swift, and since there is not any version yet on Code Review, […]
Hailstones and the Collatz Conjecture
Problem The Collatz Conjecture is related to a type of problem called a Hailstone problem; because hailstones circulate up and […]
Calculating the Collatz conjecture of a number
Problem I’ve made a Collatz Conjecture sequence calculator and I would like some feedback on what I can do better […]
How to make my Collatz Conjecture code run a lot faster? (and even better, how do I implement it into multiple computers?) Python
Problem I have been writing this piece of code for a while now, and I was wondering, is it possible […]
My recursive attempt at Collatz Sequence in Python
Problem def collatz(n, counter): if n == 1: return counter elif n % 2 == 0: return collatz(n/2, counter + […]
Calculating a Collatz Sequence
Problem I’ve written a small script to calculate Collatz sequences. For background, read here about the Collatz conjecture. Largest number […]
Optimize Collatz conjecture
Problem This was the exercise: Exercise PSD Think about a number under 25. Write down the number. If the number […]
Project Euler #14 in Swift – Longest Collatz sequence
Problem I just finished Project Euler #14 in Swift, and since there is not any version yet on Code Review, […]
- 1
- 2