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 4, 2023 12:19apuxbtapuxbtScore: 28,651Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 4, 2023 12:1928,48147,402,01622,056,0003,007,0002,334,720
2Oct 4, 2023 12:1928,52756,525,48321,088,0004,016,0002,310,144
3Oct 4, 2023 12:1928,53849,090,13023,104,0002,009,0002,355,200
4Oct 4, 2023 12:1928,54452,437,14822,105,0003,014,0002,445,312
5Oct 4, 2023 12:1928,55747,502,55022,115,0003,015,0002,322,432
6Oct 4, 2023 12:1928,60158,978,65322,149,0003,020,0002,441,216
7Oct 4, 2023 12:1928,65147,650,68223,196,0002,017,0002,310,144
8Oct 4, 2023 12:1928,87049,930,77422,358,0003,048,0002,514,944
9Oct 4, 2023 12:1928,90252,273,35222,382,0003,052,0002,301,952
10Oct 4, 2023 12:1931,63789,883,92127,840,24902,285,568
11Oct 4, 2023 12:1931,83599,433,49528,014,73702,273,280
12Oct 4, 2023 12:1931,844105,316,74628,023,10802,281,472