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 listAug 29, 2026 14:14Victor MerckléVictor MerckléScore: 3,187Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 29, 2026 14:173,17710,979,1112,796,00002,117,632stderr
2Aug 29, 2026 14:173,17811,028,2662,797,00002,117,632stderr
3Aug 29, 2026 14:173,18211,023,6262,801,00002,117,632stderr
4Aug 29, 2026 14:173,18511,031,4132,803,00002,117,632stderr
5Aug 29, 2026 14:173,18711,030,6222,805,00002,117,632stderr
6Aug 29, 2026 14:173,19011,024,9772,808,00002,117,632stderr
7Aug 29, 2026 14:173,19211,013,5962,809,00002,117,632stderr
8Aug 29, 2026 14:173,19710,983,5052,814,00002,117,632stderr
9Aug 29, 2026 14:173,19811,013,1032,815,00002,117,632stderr