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:22Yuriy LyfenkoYuriy LyfenkoScore: 44,631Success
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:2231,72585,378,80427,918,05302,244,608
2Jun 27, 2021 19:2231,751109,177,49327,940,65402,224,128
3Jun 27, 2021 19:2231,824120,875,52628,004,90702,244,608
4Jun 27, 2021 19:2244,53664,678,94137,183,0002,009,0002,269,184
5Jun 27, 2021 19:2244,55364,679,22637,197,0002,010,0002,269,184
6Jun 27, 2021 19:2244,57667,752,53637,216,0002,011,0002,269,184
7Jun 27, 2021 19:2244,63165,937,73938,268,0001,007,0002,375,680
8Jun 27, 2021 19:2244,63361,506,66239,277,00002,265,088
9Jun 27, 2021 19:2244,70266,738,29038,330,0001,008,0002,269,184
10Jun 27, 2021 19:2244,73066,256,77439,362,00002,269,184
11Jun 27, 2021 19:2244,75861,429,53438,378,0001,009,0002,379,776
12Jun 27, 2021 19:2244,82067,588,78339,442,00002,269,184