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 28, 2026 13:11Dominique GarmierDominique GarmierScore: 10,876Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 28, 2026 13:1210,80626,047,2408,454,0001,056,0002,367,488
2Apr 28, 2026 13:1210,81323,674,2338,459,0001,057,0002,351,104
3Apr 28, 2026 13:1210,84231,371,6148,481,0001,060,0002,355,200
4Apr 28, 2026 13:1210,84528,408,0618,484,0001,060,0002,359,296
5Apr 28, 2026 13:1210,87630,609,5148,508,0001,063,0002,371,584
6Apr 28, 2026 13:1210,99225,172,8448,599,0001,074,0002,363,392
7Apr 28, 2026 13:1211,01028,089,6969,689,00002,363,392
8Apr 28, 2026 13:1211,02734,452,6318,626,0001,078,0002,359,296
9Apr 28, 2026 13:1211,02828,589,1528,627,0001,078,0002,326,528