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 listJan 24, 2026 01:22zielajzielajScore: 3,506Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 24, 2026 01:223,42020,483,7382,007,0001,003,0002,355,200
2Jan 24, 2026 01:223,44718,274,7742,022,0001,011,0002,473,984
3Jan 24, 2026 01:223,49820,104,5902,052,0001,026,0002,351,104
4Jan 24, 2026 01:223,50617,060,5232,057,0001,028,0002,510,848
5Jan 24, 2026 01:223,55322,114,1751,042,0002,085,0002,351,104
6Jan 24, 2026 01:224,14917,654,4353,651,00002,535,424