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 19:53Yuriy LyfenkoYuriy LyfenkoScore: 11,022Success
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 19:5110,80725,715,8569,510,00002,424,832
2Mar 20, 2026 19:5110,84524,986,6428,484,0001,060,0002,527,232
3Mar 20, 2026 19:5110,87430,478,8908,506,0001,063,0002,527,232
4Mar 20, 2026 19:5110,90624,585,3358,531,0001,066,0002,527,232
5Mar 20, 2026 19:5310,96630,616,9228,578,0001,072,0002,527,232
6Mar 20, 2026 19:5310,99326,932,0939,674,00002,265,088
7Mar 20, 2026 19:5311,00825,290,1718,611,0001,076,0002,420,736
8Mar 20, 2026 19:5111,01627,668,1338,617,0001,077,0002,424,832
9Mar 20, 2026 19:5311,01823,205,7539,696,00002,424,832
10Mar 20, 2026 19:5111,02227,317,3288,622,0001,077,0002,424,832
11Mar 20, 2026 19:5311,02724,483,3918,626,0001,078,0002,527,232
12Mar 20, 2026 19:5311,04726,909,0109,721,00002,416,640
13Mar 20, 2026 19:5111,04725,375,5848,641,0001,080,0002,428,928
14Mar 20, 2026 19:5311,06423,762,3569,736,00002,416,640
15Mar 20, 2026 19:5111,09338,233,2887,810,0001,952,0002,527,232
16Mar 20, 2026 19:5111,19327,623,7109,850,00002,416,640
17Mar 20, 2026 19:5311,22334,989,0079,876,00002,514,944
18Mar 20, 2026 19:5311,33436,597,3918,977,000997,0002,265,088