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 22, 2024 16:17Huy Duc LeHuy Duc LeScore: 30,322Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 22, 2024 16:1729,796100,469,83226,220,48302,215,936
2Feb 22, 2024 16:1729,80093,841,19626,223,78702,224,128
3Feb 22, 2024 16:1729,880101,508,83726,294,17602,211,840
4Feb 22, 2024 16:1730,26048,306,00225,605,0001,024,0002,494,464
5Feb 22, 2024 16:1730,26455,259,59525,608,0001,024,0002,494,464
6Feb 22, 2024 16:1730,29058,099,63524,605,0002,050,0002,486,272
7Feb 22, 2024 16:1730,32255,436,77725,657,0001,026,0002,490,368
8Feb 22, 2024 16:1730,32359,099,13225,658,0001,026,0002,494,464
9Feb 22, 2024 16:1730,38260,339,20225,708,0001,028,0002,490,368
10Feb 22, 2024 16:1730,40857,500,12625,730,0001,029,0002,502,656
11Feb 22, 2024 16:1730,55952,715,51423,904,0002,988,0002,494,464
12Feb 22, 2024 16:1730,56352,312,66125,899,000996,0002,281,472