#P4626. 一道水题 II

    ID: 3570 远端评测题 1000ms 125MiB 尝试: 0 已通过: 0 难度: 5 上传者: 标签>数学素数判断,质数,筛法极限

一道水题 II

Description

One day, on the way to school, szb met Grey Wolf.

Grey Wolf: If you solve this problem for us, we will let you go.
szb: What problem?
Grey Wolf: Find the smallest number that is divisible by every number in [1,n][1,n], and take it modulo 100000007100000007.
szb: This is too easy. I will have my little brother do it.

Then you proudly accepted this task.

Input Format

One line with one number nn.

Output Format

One line with one number ansans.

10
2520

Hint

n108n \le 10^8.

Translated by ChatGPT 5