LCM of Array
Medium · rating 1350 · Number Theory, Math
The first line contains n. The second line has n positive integers. Print their least common multiple.
Constraints: 1 ≤ n ≤ 100, 1 ≤ ai ≤ 106
Related problems
- Modular Exponentiation — Medium
- GCD of an Array — Medium
- Nth Prime — Hard
- Primality Test — Medium
- Sum of Divisors — Medium
- Greatest Common Divisor — Medium