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 3, 2026 22:47vahookvahookScore: 4,108Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 3, 2026 22:474,06421,370,1502,384,0001,192,0002,490,368
2Feb 3, 2026 22:474,08820,009,4632,398,0001,199,0002,490,368
3Feb 3, 2026 22:474,08922,104,5702,399,0001,199,0002,502,656
4Feb 3, 2026 22:474,10520,542,2412,408,0001,204,0002,490,368
5Feb 3, 2026 22:474,10824,506,6172,410,0001,205,0002,502,656
6Feb 3, 2026 22:474,13325,257,8582,425,0001,212,0002,506,752
7Feb 3, 2026 22:474,13618,237,5732,427,0001,213,0002,277,376
8Feb 3, 2026 22:474,13917,214,9152,428,0001,214,0002,494,464
9Feb 3, 2026 22:474,15917,702,5872,440,0001,220,0002,498,560