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 18:26Yuriy LyfenkoYuriy LyfenkoScore: 44,814Success
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 18:2639,318105,709,60634,599,88202,224,128
2Jun 21, 2021 18:2639,338100,131,64634,617,28902,244,608
3Jun 21, 2021 18:2639,463103,231,94634,727,53202,220,032
4Jun 21, 2021 18:2644,75762,085,70438,377,0001,009,0002,269,184
5Jun 21, 2021 18:2644,79165,037,03438,406,0001,010,0002,269,184
6Jun 21, 2021 18:2644,80661,584,45138,418,0001,011,0002,269,184
7Jun 21, 2021 18:2644,81473,707,49138,425,0001,011,0002,269,184
8Jun 21, 2021 18:2644,81861,304,56438,429,0001,011,0002,269,184
9Jun 21, 2021 18:2644,82459,405,82538,434,0001,011,0002,269,184
10Jun 21, 2021 18:2644,82462,508,38338,434,0001,011,0002,269,184
11Jun 21, 2021 18:2644,82660,817,47938,436,0001,011,0002,269,184
12Jun 21, 2021 18:2644,85066,493,08238,456,0001,012,0002,269,184