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 3, 2023 00:54apuxbtapuxbtScore: 32,988Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 3, 2023 00:5432,34794,429,67428,465,77002,273,280
2Oct 3, 2023 00:5432,44286,191,34528,549,17402,273,280
3Oct 3, 2023 00:5432,511104,852,32628,609,92202,269,184
4Oct 3, 2023 00:5432,84853,543,29327,910,000996,0002,510,848
5Oct 3, 2023 00:5432,89755,335,02327,951,000998,0002,400,256
6Oct 3, 2023 00:5432,93252,767,42426,982,0001,998,0002,297,856
7Oct 3, 2023 00:5432,98850,583,54227,027,0002,002,0002,510,848
8Oct 3, 2023 00:5433,00652,376,41526,041,0003,004,0002,498,560
9Oct 3, 2023 00:5433,02253,696,28527,055,0002,004,0002,285,568
10Oct 3, 2023 00:5433,13652,230,81627,149,0002,011,0002,297,856
11Oct 3, 2023 00:5433,14457,225,13927,156,0002,011,0002,293,760
12Oct 3, 2023 00:5433,16553,081,51328,179,0001,006,0002,363,392