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,190Success
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,179105,020,79936,237,29302,232,320
2Jun 27, 2021 03:1741,273102,208,72436,319,95302,220,032
3Jun 27, 2021 03:1741,338136,152,38636,377,12602,215,936
4Jun 27, 2021 03:1743,95367,544,40837,662,0001,017,0002,269,184
5Jun 27, 2021 03:1744,14366,262,39138,846,00002,269,184
6Jun 27, 2021 03:1744,17866,422,95536,884,0001,993,0002,269,184
7Jun 27, 2021 03:1744,19065,578,42837,890,000997,0002,269,184
8Jun 27, 2021 03:1744,19165,756,20036,894,0001,994,0002,379,776
9Jun 27, 2021 03:1744,19764,892,45237,896,000997,0002,269,184
10Jun 27, 2021 03:1744,20363,591,01437,902,000997,0002,379,776
11Jun 27, 2021 03:1744,37565,630,88237,048,0002,002,0002,269,184
12Jun 27, 2021 03:1744,48568,826,78837,140,0002,007,0002,269,184