Primitive Primes
1316C1800· expert1.5s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
3 2 21 1 22 1
Output
1
Sample 2of 2
Input
2 2 9999999372 13 1
Output
2
58%
1316C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
3 2 21 1 22 1
1
2 2 9999999372 13 1
2