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 listJan 19, 2026 19:46Johan SannemoJohan SannemoScore: 88,802Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 19, 2026 19:4688,518104,849,79075,899,0001,997,0002,519,040
2Jan 19, 2026 19:4688,617103,381,15575,984,0001,999,0002,269,184
3Jan 19, 2026 19:4688,630106,874,95074,995,0002,999,0002,281,472
4Jan 19, 2026 19:4688,728106,231,64476,079,0002,002,0002,281,472
5Jan 19, 2026 19:4688,802103,316,50677,145,0001,001,0002,281,472
6Jan 19, 2026 19:4688,830101,221,59976,166,0002,004,0002,523,136
7Jan 19, 2026 19:4689,084101,758,22177,389,0001,005,0002,273,280
8Jan 19, 2026 19:4689,185103,599,29478,483,00002,281,472
9Jan 19, 2026 19:4689,252100,860,11777,536,0001,006,0002,527,232