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 listMar 20, 2026 17:18Yuriy LyfenkoYuriy LyfenkoScore: 13,605Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 20, 2026 17:1813,54127,355,0649,930,0001,986,0002,322,432
2Mar 20, 2026 17:1813,60529,122,7699,977,0001,995,0002,314,240
3Mar 20, 2026 17:1815,37228,414,42012,487,0001,040,0002,437,120