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 24, 2024 12:58zielajzielajScore: 4,092Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 24, 2024 13:124,08918,793,1832,399,0001,199,0002,461,696
2Dec 24, 2024 12:584,09118,384,7772,400,0001,200,0002,461,696
3Dec 24, 2024 12:584,09219,455,3122,401,0001,200,0002,535,424
4Dec 24, 2024 13:124,09217,012,7482,401,0001,200,0002,461,696
5Dec 24, 2024 13:124,10124,189,0702,406,0001,203,0002,535,424
6Dec 24, 2024 12:584,14223,166,4292,430,0001,215,0002,457,600