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 05:25Yuriy LyfenkoYuriy LyfenkoScore: 33,257Success
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 05:2533,23254,612,12227,228,0002,016,0002,334,720
2Jun 27, 2021 05:2533,23486,380,13729,245,64302,187,264
3Jun 27, 2021 05:2533,24998,288,33729,259,25502,191,360
4Jun 27, 2021 05:2533,25193,884,60229,260,75702,195,456
5Jun 27, 2021 05:2533,25255,804,78727,244,0002,018,0002,527,232
6Jun 27, 2021 05:2533,25552,504,27026,237,0003,027,0002,531,328
7Jun 27, 2021 05:2533,25753,708,88427,248,0002,018,0002,531,328
8Jun 27, 2021 05:2533,27652,104,41027,264,0002,019,0002,334,720
9Jun 27, 2021 05:2533,33350,447,20428,322,0001,011,0002,334,720
10Jun 27, 2021 05:2533,38850,643,29827,355,0002,026,0002,334,720
11Jun 27, 2021 05:2533,43354,969,64327,392,0002,029,0002,531,328
12Jun 27, 2021 05:2533,55051,751,03628,506,0001,018,0002,334,720