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 listFeb 20, 2026 01:52zielajzielajScore: 3,328Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 20, 2026 01:523,15716,061,5492,778,00002,437,120
2Feb 20, 2026 01:523,16518,194,2372,785,00002,428,928
3Feb 20, 2026 01:523,17416,094,7932,793,00002,531,328
4Feb 20, 2026 01:523,18423,499,2192,802,00002,531,328
5Feb 20, 2026 01:523,32818,821,2801,953,000976,0002,510,848
6Feb 20, 2026 01:523,50819,655,7462,058,0001,029,0002,437,120
7Feb 20, 2026 01:523,64817,330,7042,140,0001,070,0002,424,832
8Feb 20, 2026 01:523,87419,871,1613,409,00002,433,024
9Feb 20, 2026 01:523,91319,411,3173,443,00002,437,120