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 17, 2024 07:56Ivan BessonovIvan BessonovScore: 24,003Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2024 07:5623,90654,275,23319,034,0002,003,0002,289,664
2May 17, 2024 07:5623,94247,441,06119,063,0002,006,0002,289,664
3May 17, 2024 07:5623,96544,788,01519,081,0002,008,0002,289,664
4May 17, 2024 07:5623,98644,680,72719,098,0002,010,0002,289,664
5May 17, 2024 07:5623,99445,595,74220,110,0001,005,0002,289,664
6May 17, 2024 07:5624,00242,445,35819,111,0002,011,0002,281,472
7May 17, 2024 07:5624,00343,531,08919,112,0002,011,0002,289,664
8May 17, 2024 07:5624,03942,516,28219,140,0002,014,0002,289,664
9May 17, 2024 07:5624,06737,254,04619,162,0002,017,0002,289,664
10May 17, 2024 07:5625,50671,959,74722,445,18402,265,088
11May 17, 2024 07:5625,56386,832,16322,495,27502,256,896
12May 17, 2024 07:5625,57089,866,33222,501,95202,265,088