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:08MatthiasMatthiasScore: 129,716Success
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:08129,020140,036,697112,534,0001,004,0002,269,184
2Dec 26, 2024 15:08129,451135,294,978111,919,0001,998,0002,367,488
3Dec 26, 2024 15:08129,595138,553,236112,044,0002,000,0002,265,088
4Dec 26, 2024 15:08129,663137,108,006112,102,0002,001,0002,273,280
5Dec 26, 2024 15:08129,716140,658,807112,148,0002,002,0002,285,568
6Dec 26, 2024 15:08129,784136,250,749112,207,0002,003,0002,269,184
7Dec 26, 2024 15:08130,010141,298,063114,409,00002,285,568
8Dec 26, 2024 15:08130,149141,638,410114,531,00002,285,568
9Dec 26, 2024 15:08130,819141,742,150111,117,0004,004,0002,285,568