HF RL Explorer

Task: Efficient Factor Finding Algorithm in Python

Task: Efficient Factor Finding Algorithm in Python: a task in Terminal-Lego-15k (Harbor dataset). Implement an efficient Python function that finds all factors (divisors) of a given positive integer. A factor of a number n is any positive integer that divides n evenly (with no remainder).

The task

Implement an efficient Python function that finds all factors (divisors) of a given positive integer. A factor of a number `n` is any positive integer that divides `n` evenly (with no remainder).

Part of PrimeIntellect/Terminal-Lego-15k.