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 15:05Josu San MartinJosu San MartinScore: 22,620Success
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 15:0322,41148,418,57118,684,0001,038,0002,285,568
2Jan 17, 2026 15:0322,43546,636,94818,704,0001,039,0002,445,312
3Jan 17, 2026 15:0522,47547,871,71719,778,00002,449,408
4Jan 17, 2026 15:0322,50645,438,42819,805,00002,265,088
5Jan 17, 2026 15:0322,60843,102,43217,906,0001,989,0002,449,408
6Jan 17, 2026 15:0322,61142,881,09417,909,0001,989,0002,285,568
7Jan 17, 2026 15:0322,62049,085,72918,911,000995,0002,523,136
8Jan 17, 2026 15:0322,62550,743,39918,915,000995,0002,359,296
9Jan 17, 2026 15:0322,63342,490,14317,926,0001,991,0002,523,136
10Jan 17, 2026 15:0522,63947,016,28918,926,000996,0002,453,504
11Jan 17, 2026 15:0322,64142,569,08318,876,0001,048,0002,514,944
12Jan 17, 2026 15:0522,67240,390,43917,956,0001,995,0002,523,136