#JSUTCPC2026B. A Number Theory Problem —— 小清新数论题
A Number Theory Problem —— 小清新数论题
Problem Description
This is a simple and easy number theory problem.
denotes the least common multiple of all numbers from to . Calculate the remainder of when divided by the prime number .
Input
A single line containing two space-separated integers satisfying .
Output
Output a number representing .
Samples
5 7
4
1919 9973
2007