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 24, 2021 16:39Yuriy LyfenkoYuriy LyfenkoScore: 44,183Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 24, 2021 16:3938,90498,980,44034,235,54302,220,032
2Jun 24, 2021 16:3939,10398,632,57434,410,74802,220,032
3Jun 24, 2021 16:3939,13098,502,30734,433,96902,211,840
4Jun 24, 2021 16:3943,94768,611,49138,673,00002,371,584
5Jun 24, 2021 16:3943,95069,682,41137,659,0001,017,0002,269,184
6Jun 24, 2021 16:3944,04966,536,36037,743,0001,020,0002,269,184
7Jun 24, 2021 16:3944,18366,528,58536,888,0001,993,0002,269,184
8Jun 24, 2021 16:3944,18968,390,41336,892,0001,994,0002,269,184
9Jun 24, 2021 16:3944,20963,083,95137,907,000997,0002,375,680
10Jun 24, 2021 16:3944,24467,168,20536,939,0001,996,0002,375,680
11Jun 24, 2021 16:3944,24969,149,32736,943,0001,996,0002,273,280
12Jun 24, 2021 16:3944,26566,431,67636,956,0001,997,0002,371,584