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 listOct 2, 2023 18:43apuxbtapuxbtScore: 39,220Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 2, 2023 18:4338,61186,129,84033,978,05702,248,704
2Oct 2, 2023 18:4338,68494,571,92334,041,57502,252,800
3Oct 2, 2023 18:4339,07056,764,60533,371,0001,011,0002,269,184
4Oct 2, 2023 18:4339,10393,332,14334,410,73102,236,416
5Oct 2, 2023 18:4339,18459,104,76233,468,0001,014,0002,514,944
6Oct 2, 2023 18:4339,18957,816,07633,472,0001,014,0002,363,392
7Oct 2, 2023 18:4339,22061,165,19233,499,0001,015,0002,273,280
8Oct 2, 2023 18:4339,43862,241,62233,685,0001,020,0002,371,584
9Oct 2, 2023 18:4339,64958,675,08033,895,000996,0002,330,624
10Oct 2, 2023 18:4339,65865,572,38331,908,0002,991,0002,363,392
11Oct 2, 2023 18:4339,66165,017,06034,902,00002,514,944
12Oct 2, 2023 18:4339,76761,228,93932,996,0001,999,0002,359,296