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 26, 2021 21:39Yuriy LyfenkoYuriy LyfenkoScore: 44,208Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 26, 2021 21:3939,306109,149,19234,589,50702,224,128
2Jun 26, 2021 21:3939,309106,530,73134,591,92602,220,032
3Jun 26, 2021 21:3939,36188,716,46334,637,69802,211,840
4Jun 26, 2021 21:3943,98864,768,64337,691,0001,018,0002,269,184
5Jun 26, 2021 21:3944,19465,806,28236,897,0001,994,0002,375,680
6Jun 26, 2021 21:3944,20570,990,88938,900,00002,269,184
7Jun 26, 2021 21:3944,20867,324,87337,880,0001,023,0002,269,184
8Jun 26, 2021 21:3944,28266,137,99336,970,0001,998,0002,269,184
9Jun 26, 2021 21:3944,31864,906,60837,000,0002,000,0002,482,176
10Jun 26, 2021 21:3944,32872,169,79037,009,0002,000,0002,375,680
11Jun 26, 2021 21:3944,35770,529,75637,033,0002,001,0002,367,488
12Jun 26, 2021 21:3944,42264,644,87137,087,0002,004,0002,273,280