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 14:41Johan SannemoJohan SannemoScore: 10,136Success
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 14:4110,13022,772,8347,924,000990,0002,285,568
2Jan 20, 2026 14:4110,13227,306,7826,935,0001,981,0002,506,752
3Jan 20, 2026 14:4110,13223,769,8677,926,000990,0002,502,656
4Jan 20, 2026 14:4110,13325,408,1756,936,0001,981,0002,351,104
5Jan 20, 2026 14:4110,13626,261,9446,938,0001,982,0002,502,656
6Jan 20, 2026 14:4110,18231,272,1856,969,0001,991,0002,285,568
7Jan 20, 2026 14:4110,19026,143,2955,978,0002,989,0002,285,568
8Jan 20, 2026 14:4110,21431,552,3216,991,0001,997,0002,285,568
9Jan 20, 2026 14:4110,25625,564,9758,023,0001,002,0002,289,664