Search⌘ K
AI Features

Solved Problem - Prime Factorization

Explore the process of prime factorization by learning how to determine all prime factors of a given integer efficiently. Understand the algorithmic approach of dividing numbers to identify prime factors and how this concept applies within competitive programming using C++.

Problem statement

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

Input format

A single line of input contains an integer NN ...