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 listJul 21, 2023 17:03gchebanovgchebanovScore: 37,263Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 21, 2023 17:0337,06158,170,00531,595,0001,019,0002,449,408
2Jul 21, 2023 17:0337,12857,455,75631,652,0001,021,0002,293,760
3Jul 21, 2023 17:0337,19957,519,05032,735,00002,445,312
4Jul 21, 2023 17:0337,20759,818,59530,758,0001,984,0002,293,760
5Jul 21, 2023 17:0337,21867,526,88531,729,0001,023,0002,285,568
6Jul 21, 2023 17:0337,23363,363,38231,742,0001,023,0002,445,312
7Jul 21, 2023 17:0337,26363,932,76732,791,00002,293,760
8Jul 21, 2023 17:0337,36161,860,27830,886,0001,992,0002,453,504
9Jul 21, 2023 17:0337,40158,447,58731,916,000997,0002,449,408
10Jul 21, 2023 17:0339,02293,573,88834,339,76802,281,472
11Jul 21, 2023 17:0339,086102,243,01134,395,30202,289,664
12Jul 21, 2023 17:0339,137112,846,67134,440,30802,285,568