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 18:46Yuriy LyfenkoYuriy LyfenkoScore: 44,870Success
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 18:4632,40594,247,14228,516,67902,215,936
2Jun 27, 2021 18:4632,48383,566,01028,584,70802,228,224
3Jun 27, 2021 18:4632,49284,980,25428,593,13102,215,936
4Jun 27, 2021 18:4644,83267,504,05139,452,00002,269,184
5Jun 27, 2021 18:4644,84467,035,84839,463,00002,269,184
6Jun 27, 2021 18:4644,85367,092,91238,459,0001,012,0002,371,584
7Jun 27, 2021 18:4644,87065,346,73239,486,00002,269,184
8Jun 27, 2021 18:4644,87669,558,64038,479,0001,012,0002,269,184
9Jun 27, 2021 18:4644,90961,642,42938,507,0001,013,0002,269,184
10Jun 27, 2021 18:4644,91560,412,74639,525,00002,379,776
11Jun 27, 2021 18:4644,95261,903,05639,558,00002,387,968
12Jun 27, 2021 18:4645,11970,997,10839,705,00002,269,184