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 listFeb 23, 2024 03:12Yuriy LyfenkoYuriy LyfenkoScore: 28,415Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 23, 2024 03:1228,16050,607,16323,749,0001,032,0002,379,776
2Feb 23, 2024 03:1228,26851,196,97022,886,0001,990,0002,527,232
3Feb 23, 2024 03:1228,29351,624,62724,898,00002,392,064
4Feb 23, 2024 03:1228,29856,362,85223,906,000996,0002,396,160
5Feb 23, 2024 03:1228,29956,595,94023,907,000996,0002,387,968
6Feb 23, 2024 03:1228,30552,052,78124,908,00002,392,064
7Feb 23, 2024 03:1228,30849,926,03124,911,00002,265,088
8Feb 23, 2024 03:1228,41550,789,03523,005,0002,000,0002,527,232
9Feb 23, 2024 03:1228,61558,578,87924,174,0001,007,0002,506,752
10Feb 23, 2024 03:1228,77392,771,18125,320,63802,244,608
11Feb 23, 2024 03:1228,84999,024,61825,387,22102,240,512
12Feb 23, 2024 03:1229,01184,246,32025,529,58802,232,320
13Feb 23, 2024 03:3130,31195,272,75426,674,07302,220,032
14Feb 23, 2024 03:3130,44788,371,66226,793,02802,211,840
15Feb 23, 2024 03:3130,61696,537,21026,942,15702,224,128