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 18, 2024 11:12Huy Duc LeHuy Duc LeScore: 53,913Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 18, 2024 11:1253,270127,564,73546,877,77902,269,184
2Feb 18, 2024 11:1253,391107,159,67646,983,90202,260,992
3Feb 18, 2024 11:1253,516106,321,91647,093,70602,260,992
4Feb 18, 2024 11:1253,55174,499,24246,123,0001,002,0002,265,088
5Feb 18, 2024 11:1253,84468,573,77746,375,0001,008,0002,289,664
6Feb 18, 2024 11:1253,89370,189,87746,417,0001,009,0002,375,680
7Feb 18, 2024 11:1253,91369,239,37746,434,0001,009,0002,277,376
8Feb 18, 2024 11:1253,94074,123,75246,458,0001,009,0002,289,664
9Feb 18, 2024 11:1253,95169,317,29546,467,0001,010,0002,379,776
10Feb 18, 2024 11:1253,97467,865,98347,497,00002,289,664
11Feb 18, 2024 11:1253,99973,739,88346,508,0001,011,0002,269,184
12Feb 18, 2024 11:1254,02470,250,15846,530,0001,011,0002,289,664