Sponsored
Reserved space — layout preview until AdSense is connected
Python Basics
easy
Collatz steps
Count how many steps the Collatz sequence takes to reach 1 from n.
loops
math
1
Python Basics
easy
Factorial (iterative)
Compute n! iteratively without recursion.
loops
math
Python Basics
easy
Power of two?
Return True if n is an exact power of 2.
bitwise
math
Python Basics
easy
GCD via Euclid
Compute the greatest common divisor of two positive integers.
math
recursion
Python Basics
easy
Prime checker
Return True if n is a prime number.
math
loops
1
Showing 5 challenges · easy