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 listJan 20, 2026 12:31Johan SannemoJohan SannemoScore: 11,983Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 20, 2026 12:3111,79026,547,3797,263,0003,112,0002,359,296
2Jan 20, 2026 12:3111,86629,202,7169,398,0001,044,0002,355,200
3Jan 20, 2026 12:3111,93027,340,0308,399,0002,099,0002,289,664
4Jan 20, 2026 12:3111,94127,688,8049,458,0001,050,0002,469,888
5Jan 20, 2026 12:3111,98329,297,4918,436,0002,109,0002,289,664
6Jan 20, 2026 12:3112,01127,922,7459,513,0001,057,0002,363,392
7Jan 20, 2026 12:3112,05331,343,4439,547,0001,060,0002,285,568
8Jan 20, 2026 12:3112,09831,287,3278,517,0002,129,0002,355,200
9Jan 20, 2026 12:3112,11530,841,9799,595,0001,066,0002,355,200