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 listApr 23, 2026 11:34Nanored4498Nanored4498Score: 97,986Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 23, 2026 11:3597,914106,766,21185,164,0001,001,0002,375,680
2Apr 23, 2026 11:3597,986104,213,11285,226,0001,002,0002,379,776
3Apr 23, 2026 11:3598,282104,410,44985,484,0001,005,0002,375,680