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 listNov 17, 2025 05:37mgildermgilderScore: 298,978Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 17, 2025 05:37296,830287,998,675260,210,0001,000,0002,289,664
2Nov 17, 2025 05:37297,998288,282,536261,238,0001,000,0002,359,296
3Nov 17, 2025 05:37298,002287,839,657262,242,00002,289,664
4Nov 17, 2025 05:37298,978290,261,965262,101,0001,000,0002,289,664
5Nov 17, 2025 05:37299,278285,502,949262,364,0001,001,0002,359,296
6Nov 17, 2025 05:37299,702291,625,274261,740,0001,998,0002,449,408