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 7, 2026 04:31zielajzielajScore: 203,663Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 7, 2026 04:31201,164205,080,164176,024,0001,000,0002,351,104
2Feb 7, 2026 04:31203,663199,117,900178,222,0001,001,0002,535,424
3Feb 7, 2026 04:31205,193205,918,777180,570,00002,277,376