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 listApr 20, 2026 22:17Victor MerckléVictor MerckléScore: 21,947Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2026 22:1821,56747,481,25316,982,0001,997,0002,371,584
2Apr 20, 2026 22:1821,78136,494,52617,151,0002,017,0002,269,184
3Apr 20, 2026 22:1821,85348,309,16618,219,0001,012,0002,371,584
4Apr 20, 2026 22:1821,86549,444,19219,242,00002,371,584
5Apr 20, 2026 22:1821,94743,631,93418,298,0001,016,0002,367,488
6Apr 20, 2026 22:1821,97940,247,59018,324,0001,018,0002,371,584
7Apr 20, 2026 22:1821,99741,585,29218,340,0001,018,0002,375,680
8Apr 20, 2026 22:1822,11142,521,83118,434,0001,024,0002,371,584
9Apr 20, 2026 22:1822,15547,734,13618,471,0001,026,0002,273,280