Prime Factorization List

Computer Mathematics Medium 2 views
Back to Questions

Problem Description

Print prime factors with exponents for n.

Input Format

One integer n.

Output Format

Lines: p^e.

Sample Test Case

Input:
360
Output:
2^3 3^2 5^1

Constraints

2

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next