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:12Yuriy LyfenkoYuriy LyfenkoScore: 44,769Success
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:1237,64497,011,45633,126,43702,224,128
2Jun 27, 2021 19:1237,681103,353,93833,159,25202,220,032
3Jun 27, 2021 19:1237,81098,134,71133,273,14102,211,840
4Jun 27, 2021 19:1244,67363,205,46238,304,0001,008,0002,269,184
5Jun 27, 2021 19:1244,74762,580,68639,377,00002,387,968
6Jun 27, 2021 19:1244,76966,475,04839,397,00002,375,680
7Jun 27, 2021 19:1244,76965,402,93938,387,0001,010,0002,375,680
8Jun 27, 2021 19:1244,80667,140,25637,458,0001,971,0002,269,184
9Jun 27, 2021 19:1244,86371,293,95738,467,0001,012,0002,269,184
10Jun 27, 2021 19:1244,89065,161,60739,503,00002,379,776
11Jun 27, 2021 19:1244,94068,131,19138,533,0001,014,0002,379,776
12Jun 27, 2021 19:1244,98264,964,96539,584,00002,379,776