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 26, 2025 06:02Eugene ZhydzetskiEugene ZhydzetskiScore: 718,014Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 26, 2025 06:02713,793652,029,498628,138,00002,531,328
2Feb 26, 2025 06:02713,943655,407,335628,270,00002,330,624
3Feb 26, 2025 06:02714,476660,756,962626,740,0001,999,0002,531,328
4Feb 26, 2025 06:02717,210654,643,803631,145,00002,531,328
5Feb 26, 2025 06:02718,014658,717,732630,853,000999,0002,531,328
6Feb 26, 2025 06:02719,353658,596,457632,031,0001,000,0002,527,232
7Feb 26, 2025 06:02719,948660,122,225632,555,000999,0002,330,624
8Feb 26, 2025 06:02720,433656,221,471632,982,000999,0002,330,624
9Feb 26, 2025 06:02722,497661,460,012633,798,0001,999,0002,387,968