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 24, 2025 15:10wainCGPwainCGPScore: 36,035Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 24, 2025 15:1035,75758,534,45028,421,0003,045,0002,482,176
2Feb 24, 2025 15:1035,77557,169,91026,405,0005,077,0002,502,656
3Feb 24, 2025 15:1035,87253,340,69928,513,0003,054,0002,351,104
4Feb 24, 2025 15:1035,90356,963,24826,499,0005,096,0002,342,912
5Feb 24, 2025 15:1036,03565,712,28626,597,0005,114,0002,297,856
6Feb 24, 2025 15:1036,06864,349,80027,645,0004,095,0002,383,872
7Feb 24, 2025 15:1036,09760,712,04327,667,0004,098,0002,490,368
8Feb 24, 2025 15:1036,16957,937,56625,861,0005,968,0002,498,560
9Feb 24, 2025 15:1036,24564,473,60325,916,0005,980,0002,478,080