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 20, 2024 06:56Huy Duc LeHuy Duc LeScore: 33,624Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 20, 2024 06:5632,16892,524,34428,308,00502,215,936
2Feb 20, 2024 06:5632,20889,795,66728,342,62502,215,936
3Feb 20, 2024 06:5632,22284,516,06128,355,05402,228,224
4Feb 20, 2024 06:5633,54354,474,74828,501,0001,017,0002,498,560
5Feb 20, 2024 06:5633,60550,955,79328,553,0001,019,0002,289,664
6Feb 20, 2024 06:5633,61154,978,21629,578,00002,494,464
7Feb 20, 2024 06:5633,62457,375,54828,569,0001,020,0002,486,272
8Feb 20, 2024 06:5633,63251,114,30328,576,0001,020,0002,498,560
9Feb 20, 2024 06:5633,73157,010,35228,660,0001,023,0002,486,272
10Feb 20, 2024 06:5633,76160,653,91728,686,0001,024,0002,494,464
11Feb 20, 2024 06:5633,76355,003,64228,687,0001,024,0002,289,664
12Feb 20, 2024 06:5633,82254,366,56028,737,0001,026,0002,289,664