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 12, 2026 15:55vahookvahookScore: 5,298Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 12, 2026 15:555,26818,616,4294,636,00002,449,408
2Jan 12, 2026 15:555,27219,579,9614,639,00002,277,376
3Jan 12, 2026 15:555,27225,486,9254,639,00002,449,408
4Jan 12, 2026 15:555,29325,388,6724,658,00002,535,424
5Jan 12, 2026 15:555,29825,434,7593,497,0001,165,0002,535,424
6Jan 12, 2026 15:555,29824,083,3934,662,00002,453,504
7Jan 12, 2026 15:555,30128,231,4194,665,00002,445,312
8Jan 12, 2026 15:555,30128,089,0053,499,0001,166,0002,445,312
9Jan 12, 2026 15:555,30723,174,5844,670,00002,535,424