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 6, 2026 02:06zielajzielajScore: 3,372Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 6, 2026 02:073,33217,715,6931,955,000977,0002,359,296
2Feb 6, 2026 02:073,34518,991,7622,944,00002,367,488
3Feb 6, 2026 02:073,35519,584,6921,968,000984,0002,273,280
4Feb 6, 2026 02:063,35619,918,9912,953,00002,367,488
5Feb 6, 2026 02:073,35816,452,075985,0001,970,0002,510,848
6Feb 6, 2026 02:073,36818,370,6801,976,000988,0002,535,424
7Feb 6, 2026 02:073,36919,874,627988,0001,977,0002,359,296
8Feb 6, 2026 02:073,37218,050,8921,978,000989,0002,359,296
9Feb 6, 2026 02:063,37621,278,0431,981,000990,0002,277,376
10Feb 6, 2026 02:063,37617,144,7221,981,000990,0002,277,376
11Feb 6, 2026 02:063,39722,061,1361,993,000996,0002,367,488
12Feb 6, 2026 02:063,40020,615,344997,0001,995,0002,363,392
13Feb 6, 2026 02:073,40322,603,4721,997,000998,0002,359,296
14Feb 6, 2026 02:063,46116,347,8212,031,0001,015,0002,355,200
15Feb 6, 2026 02:073,57418,662,6792,097,0001,048,0002,277,376