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 22, 2026 03:34zielajzielajScore: 3,467Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 22, 2026 03:343,46123,802,3141,015,0002,031,0002,277,376
2Jan 22, 2026 03:343,46723,566,3962,034,0001,017,0002,535,424
3Jan 22, 2026 03:343,54018,926,8321,038,0002,077,0002,351,104