SITB - Funny Prime Factorization
Problem Description: You will given an integer number N. Find out the prime factors of this number.
The input consists of several lines.
Each line consists of one integer N ( 2<=N<=10^7 )
In each line you need to print the factors of N seperated by "x".
Input: 2 8 6
Output: 2 = 2 8 = 2 x 2 x 2 6 = 2 x 3
Same problem as FACTCG2
Quite difficult to get the right algorithm as the maximum number of lines in the input is not given.Last edit: 2020-08-11 12:28:31
plz check my code.. it's really hard to find out why i'm getting tle !!
Try it, It is really funny.