You are viewing a single comment's thread. Return to all comments →
import sys import math
t = int(input().strip()) for a0 in range(t): n = int(input().strip())
arr = [] for item in range(1,n+1): arr.append(item) print(math.lcm(*arr))
Project Euler #5: Smallest multiple
You are viewing a single comment's thread. Return to all comments →
import sys import math
t = int(input().strip()) for a0 in range(t): n = int(input().strip())