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 listMar 22, 2026 20:47olliecrowolliecrowScore: 39,470Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 21, 2026 15:2039,21857,928,37333,497,0001,015,0002,498,560
2Mar 22, 2026 20:4739,27062,161,76633,542,0001,016,0002,314,240
3Mar 21, 2026 15:2039,30057,050,72534,584,00002,355,200
4Mar 22, 2026 20:4739,47070,607,88533,713,0001,021,0002,330,624
5Mar 22, 2026 20:4739,66664,098,78831,914,0002,992,0002,498,560
6Mar 21, 2026 15:2040,07485,252,94535,265,00002,322,432