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 03:17Yuriy LyfenkoYuriy LyfenkoScore: 44,193Success
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 03:1741,628103,730,56036,632,61702,220,032
2Jun 27, 2021 03:1741,70892,320,49336,702,62702,220,032
3Jun 27, 2021 03:1741,806100,440,02936,789,37202,228,224
4Jun 27, 2021 03:1743,97270,112,60638,695,00002,269,184
5Jun 27, 2021 03:1744,18965,183,50937,889,000997,0002,375,680
6Jun 27, 2021 03:1744,19065,808,41836,893,0001,994,0002,457,600
7Jun 27, 2021 03:1744,19365,286,69737,893,000997,0002,363,392
8Jun 27, 2021 03:1744,20567,798,04136,906,0001,994,0002,375,680
9Jun 27, 2021 03:1744,22268,620,09036,920,0001,995,0002,375,680
10Jun 27, 2021 03:1744,25162,238,76037,943,000998,0002,269,184
11Jun 27, 2021 03:1744,35064,431,18437,027,0002,001,0002,265,088
12Jun 27, 2021 03:1744,35772,002,93337,033,0002,001,0002,269,184