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 03:14zielajzielajScore: 198,636Success
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 03:12196,639193,135,582171,042,0002,000,0002,277,376
2Feb 7, 2026 03:12196,759201,273,874172,148,0001,000,0002,351,104
3Feb 7, 2026 03:14197,207203,590,850173,542,00002,277,376
4Feb 7, 2026 03:14198,636199,060,783172,803,0001,997,0002,277,376
5Feb 7, 2026 03:12198,644200,089,996174,807,00002,351,104
6Feb 7, 2026 03:14274,126261,326,045241,231,00002,351,104