sahilbansal17 / Competitive_Coding

This repository contains some useful codes, techniques, algorithms and problem solutions helpful in Competitive Coding.
GNU General Public License v3.0
407 stars 308 forks source link

Integer Factorization (15 digits) #632

Closed raunak96 closed 1 year ago

raunak96 commented 2 years ago

Given some integers represented by variable 'n', factor them into product of prime numbers. Eg: If n = 2432902008176640000 , Answer is: 2^18 3^8 5^4 7^2 11^1 13^1 17^1 19^1