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 21, 2021 13:41Yuriy LyfenkoYuriy LyfenkoScore: 44,690Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 21, 2021 13:4143,16094,734,71437,980,36702,215,936
2Jun 21, 2021 13:4143,22098,752,47538,033,45302,207,744
3Jun 21, 2021 13:4143,286109,310,35338,091,58502,211,840
4Jun 21, 2021 13:4144,49764,257,45037,149,0002,008,0002,367,488
5Jun 21, 2021 13:4144,65159,270,99137,278,0002,015,0002,486,272
6Jun 21, 2021 13:4144,68062,879,83238,310,0001,008,0002,269,184
7Jun 21, 2021 13:4144,69061,144,02138,319,0001,008,0002,269,184
8Jun 21, 2021 13:4144,69263,125,76938,321,0001,008,0002,269,184
9Jun 21, 2021 13:4144,71067,271,70438,337,0001,008,0002,363,392
10Jun 21, 2021 13:4144,75164,679,07339,381,00002,379,776
11Jun 21, 2021 13:4144,79362,398,27238,408,0001,010,0002,375,680
12Jun 21, 2021 13:4145,00665,068,33138,590,0001,015,0002,269,184