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 09:24Josu San MartinJosu San MartinScore: 7,312Success
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 09:277,21215,361,0795,313,0001,034,0002,117,632
2Jun 22, 2026 09:277,24315,419,7555,355,0001,019,0002,117,632
3Jun 22, 2026 09:277,30415,411,0175,338,0001,090,0002,117,632
4Jun 22, 2026 09:277,31015,370,9695,340,0001,093,0002,117,632
5Jun 22, 2026 09:277,31215,278,9865,346,0001,089,0002,117,632
6Jun 22, 2026 09:277,32615,419,9395,359,0001,088,0002,117,632
7Jun 22, 2026 09:277,33415,433,0785,348,0001,106,0002,117,632
8Jun 22, 2026 09:277,34615,458,1195,348,0001,117,0002,117,632
9Jun 22, 2026 09:277,38615,571,2865,399,0001,101,0002,117,632