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 listNov 4, 2025 19:42Mikhail ShirokovMikhail ShirokovScore: 121,217Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 4, 2025 19:41120,528131,531,928105,065,0001,000,0002,523,136
2Nov 4, 2025 19:41120,858128,746,573105,352,0001,003,0002,277,376
3Nov 4, 2025 19:42121,061132,398,865105,529,0001,005,0002,519,040
4Nov 4, 2025 19:41121,217139,350,159105,665,0001,006,0002,273,280
5Nov 4, 2025 19:42121,427132,690,703104,859,0001,997,0002,269,184
6Nov 4, 2025 19:42121,466133,831,206104,893,0001,997,0002,277,376