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 15, 2026 20:47zielajzielajScore: 3,348Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 15, 2026 20:473,29717,211,6611,934,000967,0002,510,848
2Feb 15, 2026 20:463,31620,744,3692,918,00002,510,848
3Feb 15, 2026 20:463,32820,682,4571,953,000976,0002,433,024
4Feb 15, 2026 20:473,34021,900,1862,939,00002,437,120
5Feb 15, 2026 20:473,34817,225,4791,964,000982,0002,441,216
6Feb 15, 2026 20:473,34819,650,9522,946,00002,277,376
7Feb 15, 2026 20:473,35019,406,3932,948,00002,437,120
8Feb 15, 2026 20:473,38318,005,0911,985,000992,0002,445,312
9Feb 15, 2026 20:463,42719,992,8572,011,0001,005,0002,281,472