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 listMar 20, 2026 18:48Yuriy LyfenkoYuriy LyfenkoScore: 11,432Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 20, 2026 18:4811,26325,120,0127,929,0001,982,0002,424,832
2Mar 20, 2026 18:4811,27426,681,2659,921,00002,428,928
3Mar 20, 2026 18:4711,27826,029,3527,940,0001,985,0002,428,928
4Mar 20, 2026 18:4711,28133,748,3897,942,0001,985,0002,424,832
5Mar 20, 2026 18:4711,30224,358,4327,957,0001,989,0002,531,328
6Mar 20, 2026 18:4711,32423,727,0147,972,0001,993,0002,531,328
7Mar 20, 2026 18:4811,34136,512,7257,984,0001,996,0002,424,832
8Mar 20, 2026 18:4711,36923,988,0919,005,0001,000,0002,531,328
9Mar 20, 2026 18:4811,38227,833,0638,013,0002,003,0002,420,736
10Mar 20, 2026 18:4811,38328,124,1938,014,0002,003,0002,531,328
11Mar 20, 2026 18:4711,38829,366,0888,017,0002,004,0002,424,832
12Mar 20, 2026 18:4811,40124,522,7359,030,0001,003,0002,428,928
13Mar 20, 2026 18:4711,43223,891,3609,054,0001,006,0002,420,736
14Mar 20, 2026 18:4811,44927,340,8778,060,0002,015,0002,416,640
15Mar 20, 2026 18:4811,46024,357,1648,068,0002,017,0002,527,232
16Mar 20, 2026 18:4811,47828,079,1949,091,0001,010,0002,523,136
17Mar 20, 2026 18:4811,53143,387,3759,133,0001,014,0002,269,184
18Mar 20, 2026 18:4811,54751,989,5218,314,0001,847,0002,527,232
19Mar 20, 2026 18:4711,55540,025,0019,039,0001,129,0002,527,232
20Mar 20, 2026 18:4811,59433,933,26910,203,00002,269,184
21Mar 20, 2026 18:4811,65525,185,6419,231,0001,025,0002,269,184
22Mar 20, 2026 18:4811,66038,381,5159,235,0001,026,0002,269,184
23Mar 20, 2026 18:4711,66039,788,5189,235,0001,026,0002,269,184
24Mar 20, 2026 18:4811,74430,666,1709,302,0001,033,0002,416,640