Sum of prime numbers Andrey Tsvetkov

Compute the sum of all prime numbers in a stream of binary integers as fast as possible.

Input: 1 000 000 uint32 values in little-endian binary on STDIN (4 bytes each).

Output: The uint64 sum of all values that are prime, printed as a decimal string.

Back to listSep 23, 2026 19:38Matthias GörgensMatthias GörgensScore: 125,972Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 23, 2026 19:40125,103120,688,806106,046,0004,045,0002,121,728stderr
2Sep 23, 2026 19:40125,689121,743,866106,366,0004,241,0002,121,728stderr
3Sep 23, 2026 19:40125,735121,091,009106,497,0004,150,0002,121,728stderr
4Sep 23, 2026 19:40125,854123,535,606106,660,0004,092,0002,121,728stderr
5Sep 23, 2026 19:40125,972121,285,442106,648,0004,208,0002,117,632stderr
6Sep 23, 2026 19:40125,984121,229,762106,827,0004,039,0002,121,728stderr
7Sep 23, 2026 19:40126,389122,410,618106,956,0004,267,0002,121,728stderr
8Sep 23, 2026 19:40126,718121,967,518107,452,0004,060,0002,121,728stderr
9Sep 23, 2026 19:40126,756121,959,228107,494,0004,052,0002,117,632stderr