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 listApr 18, 2026 09:58Charles CabergsCharles CabergsScore: 44,310Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 18, 2026 09:5844,19061,701,63838,887,00002,433,024
2Apr 18, 2026 09:5844,19266,400,42336,895,0001,994,0002,289,664
3Apr 18, 2026 09:5844,21061,888,95436,910,0001,995,0002,445,312
4Apr 18, 2026 09:5844,24964,787,13436,943,0001,996,0002,281,472
5Apr 18, 2026 09:5844,31064,338,83836,994,0001,999,0002,281,472
6Apr 18, 2026 09:5844,32360,429,04836,004,0003,000,0002,289,664
7Apr 18, 2026 09:5844,34268,962,33837,020,0002,001,0002,277,376
8Apr 18, 2026 09:5844,39363,467,01136,061,0003,005,0002,437,120
9Apr 18, 2026 09:5844,58268,988,06837,221,0002,011,0002,437,120