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 1, 2022 06:38apuxbtapuxbtScore: 30,333Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 1, 2022 06:3830,10757,228,80925,475,0001,019,0002,383,872
2Dec 1, 2022 06:3830,19848,164,89325,552,0001,022,0002,265,088
3Dec 1, 2022 06:3830,26148,234,91725,606,0001,024,0002,387,968
4Dec 1, 2022 06:3830,30355,060,69926,667,00002,265,088
5Dec 1, 2022 06:3830,30352,960,76525,642,0001,025,0002,265,088
6Dec 1, 2022 06:3830,31850,007,58526,680,00002,265,088
7Dec 1, 2022 06:3830,33349,984,56125,667,0001,026,0002,265,088
8Dec 1, 2022 06:3830,37552,414,67126,730,00002,383,872
9Dec 1, 2022 06:3830,38052,404,55825,706,0001,028,0002,519,040
10Dec 1, 2022 06:3830,70190,731,69027,017,19102,240,512
11Dec 1, 2022 06:3830,83992,946,95427,138,12702,236,416
12Dec 1, 2022 06:3830,84597,112,36027,143,36002,240,512