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 18:57apuxbtapuxbtScore: 44,674Success
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 18:5744,43161,384,23537,094,0002,005,0002,510,848
2Oct 2, 2023 18:5744,46959,662,59237,127,0002,006,0002,355,200
3Oct 2, 2023 18:5744,55065,302,21437,194,0002,010,0002,510,848
4Oct 2, 2023 18:5744,59262,751,05836,223,0003,018,0002,514,944
5Oct 2, 2023 18:5744,61064,325,71638,251,0001,006,0002,514,944
6Oct 2, 2023 18:5744,61964,126,08238,259,0001,006,0002,379,776
7Oct 2, 2023 18:5744,67463,312,07138,305,0001,008,0002,379,776
8Oct 2, 2023 18:5744,71160,338,12236,320,0003,026,0002,514,944
9Oct 2, 2023 18:5744,89962,009,50238,498,0001,013,0002,379,776
10Oct 2, 2023 18:5745,421118,818,06439,970,08202,252,800
11Oct 2, 2023 18:5745,465112,388,34740,009,04502,256,896
12Oct 2, 2023 18:5745,475111,159,56140,018,09402,236,416