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 05:28vahookvahookScore: 5,602Success
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 05:285,59120,750,2723,936,000984,0002,441,216
2Jan 12, 2026 05:285,59220,001,1943,937,000984,0002,535,424
3Jan 12, 2026 05:285,59426,110,3913,939,000984,0002,273,280
4Jan 12, 2026 05:285,59720,267,0293,940,000985,0002,449,408
5Jan 12, 2026 05:285,60220,957,2574,930,00002,535,424
6Jan 12, 2026 05:285,60525,106,3772,959,0001,973,0002,441,216
7Jan 12, 2026 05:285,60523,327,8912,959,0001,973,0002,449,408
8Jan 12, 2026 05:285,60820,018,1913,948,000987,0002,277,376
9Jan 12, 2026 05:285,61521,763,4092,965,0001,976,0002,453,504