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 20:43Yuriy LyfenkoYuriy LyfenkoScore: 36,853Success
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 20:4331,49598,263,50727,715,43802,207,744
2Jun 27, 2021 20:4331,70697,063,12827,901,39802,215,936
3Jun 27, 2021 20:4331,71696,280,47227,910,00102,215,936
4Jun 27, 2021 20:4336,71856,183,02732,312,00002,269,184
5Jun 27, 2021 20:4336,80656,807,35731,377,0001,012,0002,379,776
6Jun 27, 2021 20:4336,81159,984,01231,382,0001,012,0002,269,184
7Jun 27, 2021 20:4336,85355,363,70531,418,0001,013,0002,269,184
8Jun 27, 2021 20:4336,86456,996,53331,427,0001,013,0002,371,584
9Jun 27, 2021 20:4336,91458,859,08831,469,0001,015,0002,375,680
10Jun 27, 2021 20:4336,93958,846,76132,506,00002,269,184
11Jun 27, 2021 20:4336,98259,422,51231,527,0001,017,0002,375,680
12Jun 27, 2021 20:4337,04359,015,69632,598,00002,379,776