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 21, 2021 18:21Yuriy LyfenkoYuriy LyfenkoScore: 43,651Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 21, 2021 18:2140,93095,222,48536,018,52702,211,840
2Jun 21, 2021 18:2140,966104,636,13236,050,41002,215,936
3Jun 21, 2021 18:2140,971105,733,99636,054,24402,207,744
4Jun 21, 2021 18:2143,57062,427,09737,333,0001,009,0002,269,184
5Jun 21, 2021 18:2143,60666,800,74537,364,0001,009,0002,375,680
6Jun 21, 2021 18:2143,63064,087,74738,394,00002,371,584
7Jun 21, 2021 18:2143,65160,557,12037,403,0001,010,0002,269,184
8Jun 21, 2021 18:2143,65961,757,18537,409,0001,011,0002,269,184
9Jun 21, 2021 18:2143,75361,807,87237,490,0001,013,0002,371,584
10Jun 21, 2021 18:2143,75763,984,03737,493,0001,013,0002,371,584
11Jun 21, 2021 18:2143,76658,186,82638,514,00002,269,184
12Jun 21, 2021 18:2143,78259,528,12438,528,00002,383,872