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 listFeb 15, 2024 07:05Ryan Chung Yi ShengRyan Chung Yi ShengScore: 49,022Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 15, 2024 07:0548,80565,462,74440,951,0001,997,0002,269,184
2Feb 15, 2024 07:0548,81967,937,03140,963,0001,998,0002,281,472
3Feb 15, 2024 07:0548,89564,055,48741,027,0002,001,0002,281,472
4Feb 15, 2024 07:0548,93969,392,28441,063,0002,003,0002,277,376
5Feb 15, 2024 07:0548,93966,821,41642,065,0001,001,0002,281,472
6Feb 15, 2024 07:0548,99466,209,48640,107,0003,008,0002,281,472
7Feb 15, 2024 07:0549,02265,214,52841,133,0002,006,0002,277,376
8Feb 15, 2024 07:0549,03465,646,92842,147,0001,003,0002,379,776
9Feb 15, 2024 07:0549,06966,555,79741,173,0002,008,0002,265,088
10Feb 15, 2024 07:0550,917108,498,17244,806,52002,260,992
11Feb 15, 2024 07:0550,961103,020,88144,845,64902,265,088
12Feb 15, 2024 07:0550,987107,567,92144,868,63202,265,088