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 12:10wainCGPwainCGPScore: 69,157Success
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 12:1068,99891,802,98256,671,0004,047,0002,486,272
2Feb 22, 2025 12:1069,15785,744,56355,870,0004,988,0002,289,664
3Feb 22, 2025 12:1069,29285,999,63154,980,0005,997,0002,371,584