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 5, 2025 23:53izotoffizotoffScore: 210,060Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 5, 2025 23:53209,522205,705,975183,377,0001,002,0002,285,568
2Nov 5, 2025 23:53209,582209,293,531181,425,0003,007,0002,285,568
3Nov 5, 2025 23:53209,655205,574,042183,494,0001,002,0002,285,568
4Nov 5, 2025 23:53209,793212,061,275182,612,0002,006,0002,277,376
5Nov 5, 2025 23:53210,060205,479,034183,854,000999,0002,523,136
6Nov 5, 2025 23:53210,128207,455,216181,915,0002,998,0002,285,568
7Nov 5, 2025 23:53210,302206,393,589183,066,0002,000,0002,523,136
8Nov 5, 2025 23:53210,332208,659,029183,091,0002,001,0002,277,376
9Nov 5, 2025 23:53210,776208,802,590185,483,00002,510,848