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 20:42Yuriy LyfenkoYuriy LyfenkoScore: 37,505Success
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 20:4232,20892,601,53828,343,18402,224,128
2Jun 27, 2021 20:4232,24197,276,74528,372,32802,211,840
3Jun 27, 2021 20:4232,25997,133,82428,387,97602,220,032
4Jun 27, 2021 20:4237,38362,352,97432,897,00002,265,088
5Jun 27, 2021 20:4237,45060,469,99931,958,000998,0002,269,184
6Jun 27, 2021 20:4237,45858,680,44031,965,000998,0002,379,776
7Jun 27, 2021 20:4237,50563,790,62132,004,0001,000,0002,379,776
8Jun 27, 2021 20:4237,53260,208,16131,027,0002,001,0002,265,088
9Jun 27, 2021 20:4237,53861,209,01631,031,0002,002,0002,379,776
10Jun 27, 2021 20:4237,58457,327,38531,070,0002,004,0002,269,184
11Jun 27, 2021 20:4237,58863,932,59232,075,0001,002,0002,269,184
12Jun 27, 2021 20:4237,65657,406,89532,133,0001,004,0002,269,184