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 listFeb 9, 2026 01:57zielajzielajScore: 3,468Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 9, 2026 01:563,35118,912,6811,966,000983,0002,375,680
2Feb 9, 2026 01:583,36617,470,2471,975,000987,0002,379,776
3Feb 9, 2026 01:583,39916,100,4761,994,000997,0002,527,232
4Feb 9, 2026 01:563,43419,820,8121,007,0002,015,0002,371,584
5Feb 9, 2026 01:563,46817,108,9762,035,0001,017,0002,375,680
6Feb 9, 2026 01:573,49217,676,9222,049,0001,024,0002,375,680
7Feb 9, 2026 01:573,52521,115,0741,034,0002,068,0002,531,328
8Feb 9, 2026 01:573,53219,211,2262,072,0001,036,0002,277,376
9Feb 9, 2026 01:583,81518,284,2103,357,00002,375,680