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 listJul 5, 2026 22:58Victor MerckléVictor MerckléScore: 4,131Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 5, 2026 23:004,00311,355,4503,523,00002,117,632stderr
2Jul 5, 2026 23:004,00311,324,7953,523,00002,117,632stderr
3Jul 5, 2026 23:004,11511,350,1263,622,00002,117,632stderr
4Jul 5, 2026 23:004,12211,398,6993,628,00002,117,632stderr
5Jul 5, 2026 23:004,13111,837,1503,636,00002,117,632stderr
6Jul 5, 2026 23:004,13811,372,9333,642,00002,117,632stderr
7Jul 5, 2026 23:004,19211,835,0263,689,00002,117,632stderr
8Jul 5, 2026 23:004,19611,502,7383,693,00002,117,632stderr
9Jul 5, 2026 23:004,26211,533,9383,751,00002,117,632stderr