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:34vahookvahookScore: 5,432Success
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:345,40919,122,9194,760,00002,273,280
2Jan 12, 2026 15:345,41821,385,9944,768,00002,535,424
3Jan 12, 2026 15:345,42620,412,5884,775,00002,535,424
4Jan 12, 2026 15:345,43019,064,0263,584,0001,194,0002,445,312
5Jan 12, 2026 15:345,43225,195,2374,780,00002,437,120
6Jan 12, 2026 15:345,43825,849,5614,785,00002,535,424
7Jan 12, 2026 15:345,43926,958,1583,590,0001,196,0002,445,312
8Jan 12, 2026 15:345,44518,265,7784,792,00002,277,376
9Jan 12, 2026 15:345,45720,292,3614,802,00002,535,424