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 listMay 13, 2024 08:44Ivan BessonovIvan BessonovScore: 35,580Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 13, 2024 08:4432,118113,839,00428,263,75002,273,280
2May 13, 2024 08:4432,145102,591,33928,287,74502,265,088
3May 13, 2024 08:4432,14799,401,67028,289,37802,252,800
4May 13, 2024 08:4435,49857,201,57429,223,0002,015,0002,269,184
5May 13, 2024 08:4435,52655,876,08530,255,0001,008,0002,289,664
6May 13, 2024 08:4435,54859,279,77030,273,0001,009,0002,289,664
7May 13, 2024 08:4435,58061,464,80529,290,0002,020,0002,273,280
8May 13, 2024 08:4435,63352,261,19030,346,0001,011,0002,273,280
9May 13, 2024 08:4435,69953,904,91130,402,0001,013,0002,289,664
10May 13, 2024 08:4435,70253,544,18030,405,0001,013,0002,273,280
11May 13, 2024 08:4435,80861,378,61130,495,0001,016,0002,277,376
12May 13, 2024 08:4435,85758,536,07730,537,0001,017,0002,273,280