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 listDec 29, 2022 02:58Yuriy LyfenkoYuriy LyfenkoScore: 28,467Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 29, 2022 02:5828,29955,000,63022,911,0001,992,0002,265,088
2Dec 29, 2022 02:5828,30548,437,86024,908,00002,392,064
3Dec 29, 2022 02:5828,30853,682,94322,919,0001,992,0002,265,088
4Dec 29, 2022 02:5828,38252,500,04022,978,0001,998,0002,469,888
5Dec 29, 2022 02:5828,38656,411,38322,982,0001,998,0002,392,064
6Dec 29, 2022 02:5828,38855,265,83022,983,0001,998,0002,527,232
7Dec 29, 2022 02:5828,46755,952,12524,049,0001,002,0002,527,232
8Dec 29, 2022 02:5828,47753,235,91623,056,0002,004,0002,527,232
9Dec 29, 2022 02:5828,53054,554,29723,098,0002,008,0002,387,968
10Dec 29, 2022 02:5829,20266,427,93925,697,35602,228,224
11Dec 29, 2022 02:5829,21476,637,34425,708,22402,232,320
12Dec 29, 2022 02:5829,33784,509,35425,816,16802,224,128