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:09Yuriy LyfenkoYuriy LyfenkoScore: 44,944Success
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:0932,474106,562,17228,577,23002,228,224
2Jun 27, 2021 19:0932,59288,544,97328,680,93302,215,936
3Jun 27, 2021 19:0932,66289,063,47028,742,79502,224,128
4Jun 27, 2021 19:0944,83969,696,19438,447,0001,011,0002,269,184
5Jun 27, 2021 19:0944,89461,786,86038,494,0001,013,0002,269,184
6Jun 27, 2021 19:0944,93162,252,47438,526,0001,013,0002,269,184
7Jun 27, 2021 19:0944,94461,623,83038,537,0001,014,0002,375,680
8Jun 27, 2021 19:0944,95764,382,36339,562,00002,379,776
9Jun 27, 2021 19:0944,98258,535,10439,584,00002,269,184
10Jun 27, 2021 19:0945,00264,439,61739,602,00002,269,184
11Jun 27, 2021 19:0945,07364,120,41939,664,00002,387,968
12Jun 27, 2021 19:0945,12465,875,03438,691,0001,018,0002,387,968