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 listDec 26, 2024 15:31MatthiasMatthiasScore: 129,657Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 26, 2024 15:32129,355144,580,127110,837,0002,995,0002,285,568
2Dec 26, 2024 15:32129,367150,034,800111,846,0001,997,0002,285,568
3Dec 26, 2024 15:31129,401138,128,029111,876,0001,997,0002,269,184
4Dec 26, 2024 15:31129,657141,842,605112,097,0002,001,0002,285,568
5Dec 26, 2024 15:31129,663135,472,064112,102,0002,001,0002,269,184
6Dec 26, 2024 15:32129,883142,681,205114,297,00002,269,184