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 21, 2026 16:18Andrew EpsteinAndrew EpsteinScore: 112,284Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 21, 2026 16:20111,990108,264,10898,552,00002,113,536
2Aug 21, 2026 16:20112,060108,962,80898,613,00002,113,536
3Aug 21, 2026 16:20112,234109,150,97498,766,00002,113,536
4Aug 21, 2026 16:20112,278109,750,32998,805,00002,113,536
5Aug 21, 2026 16:20112,284109,094,63798,810,00002,113,536
6Aug 21, 2026 16:20112,325108,546,27998,846,00002,113,536
7Aug 21, 2026 16:20112,611108,849,32399,098,00002,113,536
8Aug 21, 2026 16:20112,661108,740,68399,142,00002,113,536
9Aug 21, 2026 16:20113,425109,383,03799,814,00002,113,536