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 2, 2026 22:46A_ShamanA_ShamanScore: 68,111Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 2, 2026 22:4967,68769,011,57658,446,0001,119,0002,113,536
2Jul 2, 2026 22:4967,69773,358,15358,451,0001,123,0002,113,536
3Jul 2, 2026 22:4967,96772,988,11458,557,0001,254,0002,113,536
4Jul 2, 2026 22:4967,99869,215,45958,600,0001,239,0002,113,536
5Jul 2, 2026 22:4968,11169,607,58958,705,0001,233,0002,113,536
6Jul 2, 2026 22:4968,13869,742,99758,713,0001,249,0002,113,536
7Jul 2, 2026 22:4968,17569,831,98758,732,0001,262,0002,113,536
8Jul 2, 2026 22:4968,24569,850,61458,811,0001,245,0002,113,536
9Jul 2, 2026 22:4968,31170,025,66358,863,0001,251,0002,113,536