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 27, 2021 19:16Yuriy LyfenkoYuriy LyfenkoScore: 34,949Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2021 19:1631,77195,191,87727,958,28902,224,128
2Jun 27, 2021 19:1631,90883,404,21928,079,33802,228,224
3Jun 27, 2021 19:1631,97686,216,06828,138,78502,224,128
4Jun 27, 2021 19:1634,75355,198,21929,564,0001,019,0002,269,184
5Jun 27, 2021 19:1634,78252,614,95229,588,0001,020,0002,269,184
6Jun 27, 2021 19:1634,90556,204,08230,716,00002,269,184
7Jun 27, 2021 19:1634,94958,560,39829,730,0001,025,0002,486,272
8Jun 27, 2021 19:1634,96161,069,83630,766,00002,269,184
9Jun 27, 2021 19:1634,96855,384,28229,747,0001,025,0002,375,680
10Jun 27, 2021 19:1635,10858,054,25329,899,000996,0002,269,184
11Jun 27, 2021 19:1635,11455,205,67629,904,000996,0002,269,184
12Jun 27, 2021 19:1635,17459,709,58628,956,0001,997,0002,269,184