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 listMay 18, 2024 16:23Ivan BessonovIvan BessonovScore: 19,410Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 18, 2024 16:2319,34538,325,08516,023,0001,001,0002,297,856
2May 18, 2024 16:2319,37041,465,35015,041,0002,005,0002,289,664
3May 18, 2024 16:2319,37438,544,01915,044,0002,005,0002,289,664
4May 18, 2024 16:2319,38837,809,07415,054,0002,007,0002,301,952
5May 18, 2024 16:2319,39338,472,84416,063,0001,003,0002,289,664
6May 18, 2024 16:2319,40544,833,14015,067,0002,009,0002,310,144
7May 18, 2024 16:2319,41040,633,22515,072,0002,009,0002,301,952
8May 18, 2024 16:2319,46437,316,29315,113,0002,015,0002,289,664
9May 18, 2024 16:2319,46839,733,65315,117,0002,015,0002,289,664
10May 18, 2024 16:2320,21180,179,49817,785,26102,285,568
11May 18, 2024 16:2320,84272,242,62218,341,33502,289,664
12May 18, 2024 16:2320,87898,053,62318,372,76102,293,760