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:10Yuriy LyfenkoYuriy LyfenkoScore: 45,025Success
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:1032,42390,517,72828,532,66002,220,032
2Jun 27, 2021 19:1032,54991,655,92628,643,48602,228,224
3Jun 27, 2021 19:1032,60793,726,44128,694,05102,228,224
4Jun 27, 2021 19:1044,85167,237,47339,469,00002,269,184
5Jun 27, 2021 19:1044,96667,873,31939,570,00002,482,176
6Jun 27, 2021 19:1044,97762,703,34938,566,0001,014,0002,269,184
7Jun 27, 2021 19:1045,02563,352,76839,622,00002,269,184
8Jun 27, 2021 19:1045,06664,233,89839,658,00002,265,088
9Jun 27, 2021 19:1045,07368,814,03939,664,00002,379,776
10Jun 27, 2021 19:1045,26068,062,85738,834,000995,0002,375,680
11Jun 27, 2021 19:1045,32870,039,86139,889,00002,482,176
12Jun 27, 2021 19:1045,33265,488,95839,892,00002,269,184