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 11, 2026 05:01vahookvahookScore: 5,600Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 11, 2026 05:015,55917,852,9643,914,000978,0002,535,424
2Jan 11, 2026 05:015,58625,256,8433,933,000983,0002,449,408
3Jan 11, 2026 05:015,58924,228,8353,935,000983,0002,449,408
4Jan 11, 2026 05:015,59323,797,7863,938,000984,0002,277,376
5Jan 11, 2026 05:015,60023,058,4093,943,000985,0002,535,424
6Jan 11, 2026 05:015,60720,279,1884,934,00002,441,216
7Jan 11, 2026 05:015,60826,497,5222,961,0001,974,0002,445,312
8Jan 11, 2026 05:015,65721,474,7753,983,000995,0002,392,064
9Jan 11, 2026 05:015,71317,713,0364,022,0001,005,0002,355,200