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 listJan 17, 2026 06:10Josu San MartinJosu San MartinScore: 35,735Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 17, 2026 06:0935,60152,747,17731,329,00002,453,504
2Jan 17, 2026 06:0935,62457,006,89531,349,00002,453,504
3Jan 17, 2026 06:0935,65954,423,18131,380,00002,449,408
4Jan 17, 2026 06:0935,69758,364,14529,387,0002,026,0002,445,312
5Jan 17, 2026 06:1035,69857,690,02330,401,0001,013,0002,457,600
6Jan 17, 2026 06:0935,72655,002,86229,411,0002,028,0002,289,664
7Jan 17, 2026 06:0935,73554,689,74931,447,00002,449,408
8Jan 17, 2026 06:0935,76653,082,57930,459,0001,015,0002,461,696
9Jan 17, 2026 06:0935,83556,391,81330,518,0001,017,0002,461,696
10Jan 17, 2026 06:1035,84760,590,32229,510,0002,035,0002,445,312
11Jan 17, 2026 06:0935,90652,008,32130,578,0001,019,0002,457,600
12Jan 17, 2026 06:1035,95054,365,71530,616,0001,020,0002,449,408