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 listDec 21, 2024 17:58zielajzielajScore: 4,115Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 21, 2024 17:584,03116,426,7482,365,0001,182,0002,457,600
2Dec 21, 2024 17:584,03424,690,8713,550,00002,457,600
3Dec 21, 2024 17:584,04822,839,5532,375,0001,187,0002,461,696
4Dec 21, 2024 17:584,06520,239,6432,385,0001,192,0002,281,472
5Dec 21, 2024 17:584,11519,277,0922,414,0001,207,0002,535,424
6Dec 21, 2024 17:584,13321,034,1702,425,0001,212,0002,453,504
7Dec 21, 2024 17:584,13621,039,6662,427,0001,213,0002,535,424
8Dec 21, 2024 17:584,21019,789,7822,470,0001,235,0002,535,424
9Dec 21, 2024 17:585,13424,531,4163,389,0001,129,0002,297,856