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 18:11Andrew EpsteinAndrew EpsteinScore: 11,240Success
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 18:1311,14719,424,3309,810,00002,117,632
2Aug 21, 2026 18:1311,16119,432,1569,822,00002,117,632
3Aug 21, 2026 18:1311,22619,461,2319,879,00002,117,632
4Aug 21, 2026 18:1311,23219,373,6689,885,00002,113,536
5Aug 21, 2026 18:1311,24019,452,4099,892,00002,113,536
6Aug 21, 2026 18:1311,26220,723,7149,911,00002,117,632
7Aug 21, 2026 18:1311,31419,512,4689,957,00002,117,632
8Aug 21, 2026 18:1311,34519,489,1339,984,00002,113,536
9Aug 21, 2026 18:1311,36319,566,63310,000,00002,117,632