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 14:12Ivan BessonovIvan BessonovScore: 35,520Success
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 14:1231,86499,102,99928,040,56402,244,608
2May 13, 2024 14:1231,88798,994,32028,060,58302,260,992
3May 13, 2024 14:1231,94992,787,87428,115,38002,387,968
4May 13, 2024 14:1235,39255,094,07829,136,0002,009,0002,289,664
5May 13, 2024 14:1235,42253,626,77630,166,0001,005,0002,273,280
6May 13, 2024 14:1235,49253,926,67229,218,0002,015,0002,277,376
7May 13, 2024 14:1235,52058,212,43729,242,0002,016,0002,289,664
8May 13, 2024 14:1235,59758,747,84529,304,0002,021,0002,289,664
9May 13, 2024 14:1235,60956,256,30530,326,0001,010,0002,277,376
10May 13, 2024 14:1235,63454,726,94330,347,0001,011,0002,289,664
11May 13, 2024 14:1235,64863,488,15630,359,0001,011,0002,269,184
12May 13, 2024 14:1235,78154,680,84030,472,0001,015,0002,269,184