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:13Huy Duc LeHuy Duc LeScore: 59,516Success
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:1354,046104,585,33247,560,89402,256,896
2Feb 18, 2024 11:1354,152100,823,16947,653,76102,260,992
3Feb 18, 2024 11:1354,288104,774,42447,773,77602,252,800
4Feb 18, 2024 11:1359,33374,901,30550,205,0002,008,0002,289,664
5Feb 18, 2024 11:1359,39777,853,03650,259,0002,010,0002,289,664
6Feb 18, 2024 11:1359,51077,715,45151,362,0001,007,0002,289,664
7Feb 18, 2024 11:1359,51678,848,72751,367,0001,007,0002,289,664
8Feb 18, 2024 11:1359,56079,256,48451,406,0001,007,0002,265,088
9Feb 18, 2024 11:1359,61975,199,40651,457,0001,008,0002,265,088
10Feb 18, 2024 11:1359,75775,463,38151,575,0001,011,0002,289,664
11Feb 18, 2024 11:1359,81775,874,61951,627,0001,012,0002,277,376
12Feb 18, 2024 11:1359,85079,575,13051,656,0001,012,0002,289,664