Problem G1

Statement
Copy Copied
G1. Hard Formulatime limit per test2 secondsmemory limit per test1024 megabytesinputstandard inputoutputstandard outputThis 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$$$.InputThe only line contains a single integer $$$n$$$ ($$$1 \le n \le 10^{10})$$$.OutputPrint a single integer, representing $$$(\sum_{k=1}^n k\bmod\varphi(k))\bmod 2^{32}$$$.ExamplesInput5Output2
Input10000000Output2316623097
Input10000000000Output282084447

Submissions

IDLanguageExit CodeTimestampCodeStdoutStderrRetry
5878 go 0 2026-03-22T04:24:34.509399Z View View View Retry
5850 go 1 2026-03-22T04:11:45.313978Z View View View Retry
5825 cpp 0 2026-03-22T03:55:05.277543Z View View View Retry

Evaluations

Eval IDRun IDProviderModelLangSuccessTimestampPromptResponseStdoutStderrRetry
3418 20260321-230009 gemini gemini-3-pro-preview go false 2026-03-22T01:59:16.422185Z View View View View Retry