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:11Huy Duc LeHuy Duc LeScore: 31,022Success
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:1130,52794,338,65326,863,63002,224,128
2Feb 20, 2024 03:1130,55674,473,46326,888,93702,220,032
3Feb 20, 2024 03:1130,57295,124,69526,903,71802,215,936
4Feb 20, 2024 03:1130,96449,426,09926,239,0001,009,0002,482,176
5Feb 20, 2024 03:1130,99154,773,88525,252,0002,020,0002,502,656
6Feb 20, 2024 03:1130,99356,211,35625,254,0002,020,0002,289,664
7Feb 20, 2024 03:1131,02255,456,42625,277,0002,022,0002,289,664
8Feb 20, 2024 03:1131,03053,910,64926,295,0001,011,0002,289,664
9Feb 20, 2024 03:1131,07249,588,83426,331,0001,012,0002,498,560
10Feb 20, 2024 03:1131,10260,196,09327,370,00002,289,664
11Feb 20, 2024 03:1131,23255,568,09326,467,0001,017,0002,289,664
12Feb 20, 2024 03:1131,33551,794,13526,554,0001,021,0002,494,464