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 20, 2024 03:12Huy Duc LeHuy Duc LeScore: 30,103Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 20, 2024 03:1229,83148,284,82924,232,0002,019,0002,490,368
2Feb 20, 2024 03:1229,94447,881,28325,338,0001,013,0002,330,624
3Feb 20, 2024 03:1229,95552,979,09925,347,0001,013,0002,289,664
4Feb 20, 2024 03:1230,00847,956,73325,392,0001,015,0002,494,464
5Feb 20, 2024 03:1230,03494,558,17926,430,18102,224,128
6Feb 20, 2024 03:1230,05350,272,52425,430,0001,017,0002,289,664
7Feb 20, 2024 03:1230,10349,934,78225,473,0001,018,0002,289,664
8Feb 20, 2024 03:1230,13149,470,33326,515,00002,490,368
9Feb 20, 2024 03:1230,13656,346,56825,500,0001,020,0002,494,464
10Feb 20, 2024 03:1230,147104,331,57826,529,46802,215,936
11Feb 20, 2024 03:1230,16095,919,51526,541,06402,256,896
12Feb 20, 2024 03:1230,19048,481,23625,546,0001,021,0002,289,664