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 21:35Yuriy LyfenkoYuriy LyfenkoScore: 44,557Success
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 21:3542,857109,492,68637,714,25002,220,032
2Jun 26, 2021 21:3542,918102,957,44737,767,42002,211,840
3Jun 26, 2021 21:3543,088106,015,44137,917,11402,224,128
4Jun 26, 2021 21:3544,38467,703,09837,055,0002,003,0002,269,184
5Jun 26, 2021 21:3544,49968,684,65138,155,0001,004,0002,375,680
6Jun 26, 2021 21:3544,54566,113,73238,195,0001,005,0002,383,872
7Jun 26, 2021 21:3544,55768,828,55637,200,0002,010,0002,269,184
8Jun 26, 2021 21:3544,58863,841,33037,225,0002,012,0002,269,184
9Jun 26, 2021 21:3544,58966,623,83538,232,0001,006,0002,371,584
10Jun 26, 2021 21:3544,63168,128,13937,261,0002,014,0002,371,584
11Jun 26, 2021 21:3544,65559,335,69538,289,0001,007,0002,269,184
12Jun 26, 2021 21:3544,79260,565,00139,417,00002,269,184