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 listFeb 18, 2024 11:10Huy Duc LeHuy Duc LeScore: 54,818Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 18, 2024 11:1054,336121,088,98547,816,04302,252,800
2Feb 18, 2024 11:1054,347111,063,31047,824,99702,265,088
3Feb 18, 2024 11:1054,579118,964,46348,029,33302,260,992
4Feb 18, 2024 11:1054,66873,489,83846,104,0002,004,0002,289,664
5Feb 18, 2024 11:1054,71775,809,39546,145,0002,006,0002,289,664
6Feb 18, 2024 11:1054,75271,722,28547,179,0001,003,0002,289,664
7Feb 18, 2024 11:1054,81871,132,11247,235,0001,005,0002,523,136
8Feb 18, 2024 11:1054,88570,757,20847,293,0001,006,0002,265,088
9Feb 18, 2024 11:1054,95771,387,00546,347,0002,015,0002,269,184
10Feb 18, 2024 11:1055,10971,652,19247,486,0001,010,0002,265,088
11Feb 18, 2024 11:1055,20275,449,33947,566,0001,012,0002,265,088
12Feb 18, 2024 11:1055,20672,310,44947,569,0001,012,0002,269,184