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 16:05Yuriy LyfenkoYuriy LyfenkoScore: 36,931Success
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 16:0534,987122,959,49030,788,55102,220,032
2Jun 27, 2021 16:0534,99491,019,76430,794,66002,224,128
3Jun 27, 2021 16:0535,11693,621,21430,902,08502,215,936
4Jun 27, 2021 16:0536,80154,817,45431,373,0001,012,0002,375,680
5Jun 27, 2021 16:0536,83253,960,02732,412,00002,269,184
6Jun 27, 2021 16:0536,88055,952,42832,454,00002,269,184
7Jun 27, 2021 16:0536,93161,312,53931,484,0001,015,0002,269,184
8Jun 27, 2021 16:0536,96453,272,60532,528,00002,519,040
9Jun 27, 2021 16:0536,96656,748,27231,514,0001,016,0002,269,184
10Jun 27, 2021 16:0536,97055,689,45732,534,00002,269,184
11Jun 27, 2021 16:0537,00159,600,09032,561,00002,363,392
12Jun 27, 2021 16:0537,00555,796,35131,547,0001,017,0002,269,184