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:15MatthiasMatthiasScore: 129,517Success
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:15129,334146,585,647110,819,0002,995,0002,285,568
2Dec 26, 2024 15:15129,468137,556,298112,933,000999,0002,277,376
3Dec 26, 2024 15:15129,497134,483,401111,958,0001,999,0002,265,088
4Dec 26, 2024 15:15129,517142,172,331111,976,0001,999,0002,265,088
5Dec 26, 2024 15:15129,517138,568,489111,976,0001,999,0002,273,280
6Dec 26, 2024 15:15129,932148,954,064112,335,0002,005,0002,285,568
7Dec 26, 2024 15:15129,942136,404,123113,346,0001,003,0002,273,280
8Dec 26, 2024 15:15130,099136,167,169113,483,0001,004,0002,383,872
9Dec 26, 2024 15:15130,120135,878,671113,502,0001,004,0002,273,280