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 listOct 2, 2023 19:21apuxbtapuxbtScore: 34,027Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 2, 2023 19:2133,470119,767,98029,453,33302,228,224
2Oct 2, 2023 19:2133,56499,182,85329,536,00502,244,608
3Oct 2, 2023 19:2133,579113,011,14529,549,23602,228,224
4Oct 2, 2023 19:2133,96359,360,36426,899,0002,988,0002,510,848
5Oct 2, 2023 19:2133,96458,312,23327,896,0001,992,0002,375,680
6Oct 2, 2023 19:2134,00652,876,95626,933,0002,992,0002,338,816
7Oct 2, 2023 19:2134,02755,362,86426,950,0002,994,0002,351,104
8Oct 2, 2023 19:2134,06661,359,16027,980,0001,998,0002,400,256
9Oct 2, 2023 19:2134,21951,782,89028,106,0002,007,0002,494,464
10Oct 2, 2023 19:2134,26554,838,28227,138,0003,015,0002,510,848
11Oct 2, 2023 19:2134,34553,288,02427,202,0003,022,0002,359,296
12Oct 2, 2023 19:2134,45856,671,79128,302,0002,021,0002,396,160