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 17, 2026 03:21zielajzielajScore: 3,385Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 17, 2026 03:213,32018,689,4131,948,000974,0002,441,216
2Feb 17, 2026 03:223,32220,192,6001,949,000974,0002,445,312
3Feb 17, 2026 03:213,32424,038,4302,925,00002,277,376
4Feb 17, 2026 03:213,32523,345,6611,951,000975,0002,277,376
5Feb 17, 2026 03:213,33421,626,4632,934,00002,437,120
6Feb 17, 2026 03:213,33516,637,9191,957,000978,0002,445,312
7Feb 17, 2026 03:223,38518,303,0881,986,000993,0002,441,216
8Feb 17, 2026 03:213,39220,809,4461,990,000995,0002,445,312
9Feb 17, 2026 03:223,39221,840,9321,990,000995,0002,441,216
10Feb 17, 2026 03:213,40623,724,9391,998,000999,0002,445,312
11Feb 17, 2026 03:213,46824,911,1052,035,0001,017,0002,437,120
12Feb 17, 2026 03:214,15317,360,8123,655,00002,441,216