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 6, 2026 04:49vahookvahookScore: 3,481Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 6, 2026 04:493,44820,306,2511,011,0002,023,0002,490,368
2Feb 6, 2026 04:493,47021,138,3841,018,0002,036,0002,506,752
3Feb 6, 2026 04:493,47417,978,4691,019,0002,038,0002,498,560
4Feb 6, 2026 04:493,48120,199,3781,021,0002,042,0002,498,560
5Feb 6, 2026 04:493,61818,759,6481,061,0002,123,0002,494,464
6Feb 6, 2026 04:493,64518,191,6861,069,0002,139,0002,277,376