Loading...

The Decomposer

A easy Python interview practice problem on DataDriven. Write and execute real python code with instant grading.

Domain
Python
Difficulty
easy
Seniority
junior, mid

Problem

An analytics pipeline needs to decompose identifiers into their smallest components for hashing purposes. Write a function that takes a positive integer greater than 1 and returns its prime factors in ascending order, including repeated factors.

Practice This Problem

Solve this Python problem with real code execution. DataDriven runs your Python code in a sandboxed Docker environment and grades it instantly.