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 21:28A_ShamanA_ShamanScore: 124,087Success
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 21:31123,672118,632,236107,686,0001,146,0002,113,536
2Jul 2, 2026 21:31123,728118,674,120107,750,0001,131,0002,113,536
3Jul 2, 2026 21:31123,761118,345,701107,808,0001,102,0002,113,536
4Jul 2, 2026 21:31123,915118,833,962107,916,0001,130,0002,113,536
5Jul 2, 2026 21:31124,087119,079,265108,037,0001,160,0002,113,536
6Jul 2, 2026 21:31124,206118,949,815108,181,0001,121,0002,113,536
7Jul 2, 2026 21:31124,488119,362,481108,432,0001,118,0002,113,536
8Jul 2, 2026 21:31124,589119,449,403108,522,0001,117,0002,113,536
9Jul 2, 2026 21:31124,722119,360,672108,614,0001,142,0002,117,632