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 21, 2026 20:10Victor MerckléVictor MerckléScore: 24,197Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 21, 2026 20:1123,79537,198,94418,946,0001,994,0002,379,776
2Apr 21, 2026 20:1123,91738,009,90620,045,0001,002,0002,379,776
3Apr 21, 2026 20:1124,13140,266,90620,225,0001,011,0002,392,064
4Apr 21, 2026 20:1124,16340,552,59820,252,0001,012,0002,383,872
5Apr 21, 2026 20:1124,19742,316,98120,280,0001,014,0002,375,680
6Apr 21, 2026 20:1124,20537,356,38520,287,0001,014,0002,379,776
7Apr 21, 2026 20:1124,21736,712,55820,297,0001,014,0002,375,680
8Apr 21, 2026 20:1124,22140,146,21120,300,0001,015,0002,371,584
9Apr 21, 2026 20:1124,24241,150,51820,318,0001,015,0002,387,968