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 listFeb 28, 2025 09:43wainCGPwainCGPScore: 30,042Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 28, 2025 09:4329,94948,562,44525,342,0001,013,0002,265,088
2Feb 28, 2025 09:4329,98549,035,88825,373,0001,014,0002,273,280
3Feb 28, 2025 09:4330,00948,942,33525,393,0001,015,0002,387,968
4Feb 28, 2025 09:4330,02653,080,81425,407,0001,016,0002,289,664
5Feb 28, 2025 09:4330,04257,464,47925,421,0001,016,0002,273,280
6Feb 28, 2025 09:4330,10253,385,72025,472,0001,018,0002,289,664
7Feb 28, 2025 09:4330,12353,664,85425,489,0001,019,0002,273,280
8Feb 28, 2025 09:4330,14253,364,13325,505,0001,020,0002,281,472
9Feb 28, 2025 09:4330,16752,516,68826,547,00002,273,280