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 15:12Dominique GarmierDominique GarmierScore: 10,534Success
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 15:1410,44322,844,1897,148,0002,042,0002,355,200
2Apr 20, 2026 15:1410,45224,578,0157,154,0002,044,0002,367,488
3Apr 20, 2026 15:1410,46526,972,0437,164,0002,046,0002,355,200
4Apr 20, 2026 15:1410,51123,968,7756,167,0003,083,0002,273,280
5Apr 20, 2026 15:1410,53426,075,1717,210,0002,060,0002,355,200
6Apr 20, 2026 15:1410,58527,962,7108,280,0001,035,0002,363,392
7Apr 20, 2026 15:1410,62127,964,5378,309,0001,038,0002,359,296
8Apr 20, 2026 15:1411,07617,340,8007,581,0002,166,0002,269,184
9Apr 20, 2026 15:1411,18430,424,0837,874,0001,968,0002,273,280