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 listAug 21, 2026 18:01Andrew EpsteinAndrew EpsteinScore: 13,010Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 21, 2026 18:0312,89820,963,34311,351,00002,113,536
2Aug 21, 2026 18:0312,92321,042,99011,373,00002,113,536
3Aug 21, 2026 18:0312,98721,032,74011,429,00002,113,536
4Aug 21, 2026 18:0313,00321,009,86111,443,00002,113,536
5Aug 21, 2026 18:0313,01020,993,63311,449,00002,113,536
6Aug 21, 2026 18:0313,02620,980,94811,463,00002,113,536
7Aug 21, 2026 18:0313,03121,004,05211,468,00002,113,536
8Aug 21, 2026 18:0313,04721,030,52411,482,00002,113,536
9Aug 21, 2026 18:0313,05121,089,71011,485,00002,113,536