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 25, 2026 11:50olliecrowolliecrowScore: 140,431Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 25, 2026 11:51140,059145,765,890122,250,0001,002,0002,531,328stderr
2Apr 25, 2026 11:51140,329143,660,949122,487,0001,003,0002,519,040stderr
3Apr 25, 2026 11:51140,372139,121,008122,524,0001,004,0002,322,432stderr
4Apr 25, 2026 11:51140,422139,132,018122,568,0001,004,0002,527,232stderr
5Apr 25, 2026 11:51140,431142,185,326122,576,0001,004,0002,527,232stderr
6Apr 25, 2026 11:51140,630139,655,107121,759,0001,996,0002,523,136stderr
7Apr 25, 2026 11:51140,664147,601,555119,824,0003,961,0002,330,624stderr
8Apr 25, 2026 11:51140,687143,164,650121,809,0001,996,0002,519,040stderr
9Apr 25, 2026 11:51140,968143,157,157122,052,0002,000,0002,342,912stderr