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:53zielajzielajScore: 3,470Success
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:533,35817,518,7352,955,00002,273,280
2Feb 7, 2026 03:533,40022,092,7251,995,000997,0002,535,424
3Feb 7, 2026 03:533,46519,933,7352,033,0001,016,0002,347,008
4Feb 7, 2026 03:533,47016,571,5602,036,0001,018,0002,486,272
5Feb 7, 2026 03:533,48119,762,5762,042,0001,021,0002,355,200
6Feb 7, 2026 03:533,48216,762,7212,043,0001,021,0002,277,376