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 listNov 6, 2025 09:52Mikhail ShirokovMikhail ShirokovScore: 125,988Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 6, 2025 09:52125,659137,499,989109,575,0001,005,0002,277,376
2Nov 6, 2025 09:52125,988138,185,515108,872,0001,997,0002,277,376
3Nov 6, 2025 09:52126,124138,311,250108,990,0001,999,0002,277,376