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 29, 2026 11:26Dominique GarmierDominique GarmierScore: 10,332Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 11:2810,22525,294,4226,999,0001,999,0002,437,120
2Apr 29, 2026 11:2810,24323,515,1407,011,0002,003,0002,359,296
3Apr 29, 2026 11:2810,27226,177,3956,027,0003,013,0002,363,392
4Apr 29, 2026 11:2810,29524,864,0247,047,0002,013,0002,379,776
5Apr 29, 2026 11:2810,33226,272,8397,073,0002,020,0002,367,488
6Apr 29, 2026 11:2810,36021,098,8077,091,0002,026,0002,433,024
7Apr 29, 2026 11:2810,36123,808,2906,079,0003,039,0002,326,528
8Apr 29, 2026 11:2810,40626,809,0857,123,0002,035,0002,371,584
9Apr 29, 2026 11:2810,41922,949,6366,113,0003,056,0002,326,528