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 03:11Huy Duc LeHuy Duc LeScore: 31,093Success
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 03:1130,568101,497,97226,899,43102,215,936
2Feb 20, 2024 03:1130,628102,530,38626,952,73302,224,128
3Feb 20, 2024 03:1130,708101,290,38227,023,22002,220,032
4Feb 20, 2024 03:1131,02348,417,33525,278,0002,022,0002,289,664
5Feb 20, 2024 03:1131,02752,133,52225,282,0002,022,0002,490,368
6Feb 20, 2024 03:1131,06951,370,15526,329,0001,012,0002,289,664
7Feb 20, 2024 03:1131,09354,231,38326,349,0001,013,0002,289,664
8Feb 20, 2024 03:1131,12250,806,12127,387,00002,289,664
9Feb 20, 2024 03:1131,12755,151,16126,378,0001,014,0002,486,272
10Feb 20, 2024 03:1131,15353,656,10826,400,0001,015,0002,289,664
11Feb 20, 2024 03:1131,18350,014,12426,425,0001,016,0002,289,664
12Feb 20, 2024 03:1131,20154,606,63326,441,0001,016,0002,318,336