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:49Ivan BessonovIvan BessonovScore: 34,545Success
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:4932,52788,128,31628,624,10502,265,088
2May 13, 2024 08:4932,57192,847,18928,662,88302,265,088
3May 13, 2024 08:4932,589105,335,97928,677,95302,256,896
4May 13, 2024 08:4934,31654,628,59728,185,0002,013,0002,281,472
5May 13, 2024 08:4934,49461,588,83229,344,0001,011,0002,289,664
6May 13, 2024 08:4934,54551,381,39229,387,0001,013,0002,383,872
7May 13, 2024 08:4934,54557,275,59229,387,0001,013,0002,289,664
8May 13, 2024 08:4934,56552,068,01529,404,0001,013,0002,289,664
9May 13, 2024 08:4934,58452,098,33429,420,0001,014,0002,281,472
10May 13, 2024 08:4934,61653,775,09029,447,0001,015,0002,269,184
11May 13, 2024 08:4934,66853,724,59430,508,00002,277,376
12May 13, 2024 08:4934,67854,113,25529,500,0001,017,0002,289,664