Solutions are presented as using the least memory and the fastest execution time. It also takes the top
10 most recent solutions from each language. If you want to limit to a specific index, click the
"Solved" button and go to that problem.
Problems
This is the easy version of the problem. The difference between the versions is that in this version, the limits on (n) and the time limit are smaller. You can hack only if you solved all versions of this problem. You are given an integer (n), and you need to compute ((\sum_{k=1}^n k\bmod\varphi(k))\bmod 2^{32}), where (\varphi(k)) equals the number of positive integers no greater than (k) that are coprime with (k). The only line contains a single integer (n) ((1 \le n \le 10^{10})). Print a single integer, representing ((\sum_{k=1}^n k\bmod\varphi(k))\bmod 2^{32}). |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|
310787856 |
Prean |
G1 |
March 15, 2025, 7:22 p.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
34 |
296 |
253952000 |
|
|
|
310754863 |
Etohari |
G1 |
March 15, 2025, 3:48 p.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
34 |
546 |
44339200 |
|
|
|
310756557 |
Morphed |
G1 |
March 15, 2025, 3:55 p.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
34 |
1749 |
168345600 |
|
|
|
310769531 |
nishkarsh |
G1 |
March 15, 2025, 5 p.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
34 |
1749 |
315801600 |
|
|
|
310759015 |
Rubikun |
G1 |
March 15, 2025, 4:05 p.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
34 |
671 |
34201600 |
|
|
|
310792677 |
Benq |
G1 |
March 15, 2025, 8:08 p.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
34 |
796 |
23142400 |
|
|
|
310788529 |
jtnydv25 |
G1 |
March 15, 2025, 7:29 p.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
34 |
1328 |
7577600 |
|
|
|
310778645 |
cn449 |
G1 |
March 15, 2025, 6:03 p.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
34 |
1640 |
115302400 |
|
|
|
310753553 |
anango |
G1 |
March 15, 2025, 3:44 p.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
34 |
1967 |
173056000 |
|
|
|
310788031 |
Prean |
G1 |
March 15, 2025, 7:24 p.m. |
OK |
C++23 (GCC 14-64, msys2) |
TESTS |
34 |
109 |
266035200 |
|
|
|
310784676 |
jatking |
G1 |
March 15, 2025, 6:54 p.m. |
OK |
C++23 (GCC 14-64, msys2) |
TESTS |
34 |
421 |
84377600 |
|
|
|
310772467 |
ymmparsa |
G1 |
March 15, 2025, 5:18 p.m. |
OK |
C++23 (GCC 14-64, msys2) |
TESTS |
34 |
671 |
44441600 |
|
|
|
310801252 |
Sparkle_Twilight |
G1 |
March 15, 2025, 9:43 p.m. |
OK |
C++23 (GCC 14-64, msys2) |
TESTS |
34 |
843 |
160460800 |
|
|
|
310796014 |
platter |
G1 |
March 15, 2025, 8:43 p.m. |
OK |
C++23 (GCC 14-64, msys2) |
TESTS |
34 |
890 |
160460800 |
|
|
|
310755673 |
hos.lyric |
G1 |
March 15, 2025, 3:51 p.m. |
OK |
C++23 (GCC 14-64, msys2) |
TESTS |
34 |
984 |
85094400 |
|
|
|
310765573 |
maspy |
G1 |
March 15, 2025, 4:38 p.m. |
OK |
C++23 (GCC 14-64, msys2) |
TESTS |
34 |
1718 |
568832000 |
|
|
|
310804554 |
Halzion |
G1 |
March 15, 2025, 10:27 p.m. |
OK |
C++23 (GCC 14-64, msys2) |
TESTS |
34 |
1874 |
157388800 |
|
|
|
310783398 |
rewhile |
G1 |
March 15, 2025, 6:42 p.m. |
OK |
C++23 (GCC 14-64, msys2) |
TESTS |
34 |
1921 |
154112000 |
|
|
remove filters
Back to search problems