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 27, 2026 13:48SemyonSemyonScore: 1,066,919Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 27, 2026 13:481,063,815961,750,337935,157,0001,000,0002,318,336
2Jan 27, 2026 13:481,066,919960,487,345936,890,0001,999,0002,265,088
3Jan 27, 2026 13:481,072,219969,983,032941,554,0001,999,0002,265,088