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 listJun 22, 2026 10:25Josu San MartinJosu San MartinScore: 7,107Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 22, 2026 10:286,90313,471,2696,075,00002,117,632
2Jun 22, 2026 10:287,04013,653,7796,196,00002,117,632
3Jun 22, 2026 10:287,04513,710,7865,152,0001,048,0002,117,632
4Jun 22, 2026 10:287,05917,333,0035,165,0001,047,0002,117,632
5Jun 22, 2026 10:287,10713,720,9525,225,0001,030,0002,117,632
6Jun 22, 2026 10:287,25213,706,4105,325,0001,057,0002,117,632
7Jun 22, 2026 10:287,25313,709,5865,313,0001,070,0002,117,632
8Jun 22, 2026 10:287,26713,973,1165,362,0001,033,0002,117,632
9Jun 22, 2026 10:287,31414,030,6735,397,0001,040,0002,117,632