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 17, 2026 06:22Josu San MartinJosu San MartinScore: 35,449Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 17, 2026 06:2235,19054,259,70129,969,000998,0002,449,408
2Jan 17, 2026 06:2235,38558,618,70530,135,0001,004,0002,449,408
3Jan 17, 2026 06:2235,41353,644,49929,153,0002,010,0002,461,696
4Jan 17, 2026 06:2235,43554,488,20328,166,0003,017,0002,453,504
5Jan 17, 2026 06:2235,44954,591,98829,183,0002,012,0002,457,600
6Jan 17, 2026 06:2235,46655,177,31230,204,0001,006,0002,277,376
7Jan 17, 2026 06:2235,47851,892,57830,214,0001,007,0002,461,696
8Jan 17, 2026 06:2235,49252,942,62528,211,0003,022,0002,457,600
9Jan 17, 2026 06:2235,56053,545,63230,284,0001,009,0002,285,568