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 listNov 30, 2022 15:15apuxbtapuxbtScore: 40,470Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 30, 2022 15:1540,26396,670,49235,431,08702,236,416
2Nov 30, 2022 15:1540,31668,079,87534,465,0001,013,0002,265,088
3Nov 30, 2022 15:1540,370105,968,34635,525,34802,236,416
4Nov 30, 2022 15:1540,38856,729,06535,541,00002,396,160
5Nov 30, 2022 15:1540,42262,007,66735,571,00002,265,088
6Nov 30, 2022 15:1540,44257,968,20234,573,0001,016,0002,265,088
7Nov 30, 2022 15:1540,470119,811,81635,613,81602,232,320
8Nov 30, 2022 15:1540,47360,488,43334,599,0001,017,0002,265,088
9Nov 30, 2022 15:1540,51156,760,94534,632,0001,018,0002,387,968
10Nov 30, 2022 15:1540,52455,015,40335,661,00002,265,088
11Nov 30, 2022 15:1540,54362,054,41234,659,0001,019,0002,265,088
12Nov 30, 2022 15:1540,66466,447,40034,762,0001,022,0002,265,088