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:09Huy Duc LeHuy Duc LeScore: 29,727Success
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:0929,52048,700,37123,980,0001,998,0002,498,560
2Feb 20, 2024 03:0929,58150,951,78724,029,0002,002,0002,494,464
3Feb 20, 2024 03:0929,59352,749,28724,039,0002,003,0002,289,664
4Feb 20, 2024 03:0929,644100,553,01826,086,58702,220,032
5Feb 20, 2024 03:0929,66056,617,76425,098,0001,003,0002,490,368
6Feb 20, 2024 03:0929,67855,426,14524,108,0002,009,0002,289,664
7Feb 20, 2024 03:0929,72753,190,63224,148,0002,012,0002,289,664
8Feb 20, 2024 03:0929,74386,851,12926,174,04402,215,936
9Feb 20, 2024 03:0929,788102,454,00626,213,04502,224,128
10Feb 20, 2024 03:0929,81453,737,45724,218,0002,018,0002,289,664
11Feb 20, 2024 03:0929,82651,347,99925,238,0001,009,0002,289,664
12Feb 20, 2024 03:0929,89754,825,52324,286,0002,023,0002,289,664