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 listJun 26, 2021 20:40Yuriy LyfenkoYuriy LyfenkoScore: 33,409Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 26, 2021 20:4033,26955,740,23926,249,0003,028,0002,334,720
2Jun 26, 2021 20:4033,27457,572,59427,262,0002,019,0002,334,720
3Jun 26, 2021 20:4033,299110,005,38629,303,27802,195,456
4Jun 26, 2021 20:4033,35798,564,61929,354,47702,179,072
5Jun 26, 2021 20:4033,37453,580,71628,357,0001,012,0002,326,528
6Jun 26, 2021 20:4033,39399,909,47629,386,22302,191,360
7Jun 26, 2021 20:4033,40951,401,27227,373,0002,027,0002,531,328
8Jun 26, 2021 20:4033,41152,392,58428,389,0001,013,0002,334,720
9Jun 26, 2021 20:4033,47748,205,82227,429,0002,031,0002,334,720
10Jun 26, 2021 20:4033,55154,699,50527,489,0002,036,0002,531,328
11Jun 26, 2021 20:4033,59751,410,29228,546,0001,019,0002,531,328
12Jun 26, 2021 20:4033,65155,200,88327,571,0002,042,0002,334,720