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 listJun 20, 2026 19:52A_ShamanA_ShamanScore: 163,209Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 20, 2026 19:54162,759152,428,577138,999,0004,229,0002,113,536
2Jun 20, 2026 19:54162,845152,473,362139,077,0004,227,0002,113,536
3Jun 20, 2026 19:54162,869152,486,762139,163,0004,162,0002,113,536
4Jun 20, 2026 19:54163,104153,114,441139,260,0004,272,0002,113,536
5Jun 20, 2026 19:54163,209153,236,495139,454,0004,170,0002,113,536
6Jun 20, 2026 19:54163,317153,328,457139,464,0004,255,0002,113,536
7Jun 20, 2026 19:54163,373153,334,759139,529,0004,240,0002,113,536
8Jun 20, 2026 19:54163,415152,932,596139,656,0004,150,0002,113,536
9Jun 20, 2026 19:54163,895153,814,677139,855,0004,373,0002,113,536