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:38zielajzielajScore: 3,441Success
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:373,35215,995,9651,967,000983,0002,359,296
2Feb 6, 2026 02:373,36823,427,6031,976,000988,0002,363,392
3Feb 6, 2026 02:373,37222,374,3921,978,000989,0002,363,392
4Feb 6, 2026 02:393,37622,267,9461,981,000990,0002,277,376
5Feb 6, 2026 02:393,38917,816,333994,0001,988,0002,527,232
6Feb 6, 2026 02:373,42618,555,8232,010,0001,005,0002,359,296
7Feb 6, 2026 02:373,44120,054,7752,019,0001,009,0002,363,392
8Feb 6, 2026 02:383,48817,915,8631,023,0002,046,0002,355,200
9Feb 6, 2026 02:383,51118,835,2081,030,0002,060,0002,363,392
10Feb 6, 2026 02:373,53917,114,3351,038,0002,076,0002,359,296
11Feb 6, 2026 02:383,85122,439,1393,389,00002,359,296
12Feb 6, 2026 02:394,18815,690,0873,685,00002,351,104