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, 2025 09:09wainCGPwainCGPScore: 136,298Success
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, 2025 09:09135,620144,177,929114,332,0005,014,0002,486,272
2Feb 22, 2025 09:09135,886146,039,884115,561,0004,019,0002,482,176
3Feb 22, 2025 09:09136,173143,140,435114,839,0004,993,0002,334,720
4Feb 22, 2025 09:09136,236148,026,788115,892,0003,996,0002,510,848
5Feb 22, 2025 09:09136,298143,260,447116,944,0002,998,0002,490,368
6Feb 22, 2025 09:09136,318148,236,203115,962,0003,998,0002,473,984
7Feb 22, 2025 09:09136,625151,448,010116,223,0004,007,0002,482,176
8Feb 22, 2025 09:09136,785148,654,746117,362,0003,009,0002,420,736
9Feb 22, 2025 09:09142,189146,496,417120,121,0005,005,0002,473,984