AI Features

Solved Problem - Prime Factorization

In this lesson, we'll discuss how to find the prime factorization of a number.

Problem statement

Given an integer, NN, print all the prime factors of NN.

Input format

A single line of input contains an integer NN (1N1010)(1 \leq N \leq 10^{10}) ...

Ask