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 19, 2024 05:23nguyendqminhnguyendqminhScore: 100,339Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 19, 2024 05:23100,240150,633,16688,211,07802,240,512
2Feb 19, 2024 06:28100,313149,305,65488,275,83502,228,224
3Feb 19, 2024 06:28100,333157,067,47088,292,89202,240,512
4Feb 19, 2024 06:28100,339150,472,56488,298,17902,240,512
5Feb 19, 2024 05:23100,361151,473,28188,317,73302,256,896
6Feb 19, 2024 05:23100,410145,680,61688,360,94302,232,320