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 listApr 14, 2026 18:08limanjun99limanjun99Score: 17,482Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 14, 2026 18:0817,29938,853,58113,194,0002,029,0002,441,216
2Apr 14, 2026 18:0817,48232,190,55214,359,0001,025,0002,457,600
3Apr 14, 2026 18:0817,51939,190,62412,334,0003,083,0002,506,752