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 12:15Dominique GarmierDominique GarmierScore: 10,563Success
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 12:1610,35325,011,9937,087,0002,024,0002,363,392
2Apr 28, 2026 12:1610,40725,362,6017,124,0002,035,0002,375,680
3Apr 28, 2026 12:1610,50026,837,5758,214,0001,026,0002,371,584
4Apr 28, 2026 12:1610,54729,333,6498,251,0001,031,0002,375,680
5Apr 28, 2026 12:1610,56324,969,1399,296,00002,375,680
6Apr 28, 2026 12:1610,56526,710,0018,265,0001,033,0002,363,392
7Apr 28, 2026 12:1610,57927,682,5368,276,0001,034,0002,367,488
8Apr 28, 2026 12:1610,58624,199,0938,281,0001,035,0002,322,432
9Apr 28, 2026 12:1610,67531,455,7828,351,0001,043,0002,326,528