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 19, 2024 13:01Huy Duc LeHuy Duc LeScore: 33,047Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 19, 2024 13:0132,92253,339,96526,973,0001,998,0002,289,664
2Feb 19, 2024 13:0132,93154,316,51227,980,000999,0002,486,272
3Feb 19, 2024 13:0132,95954,222,81227,004,0002,000,0002,486,272
4Feb 19, 2024 13:0132,96456,096,06127,008,0002,000,0002,289,664
5Feb 19, 2024 13:0132,96854,769,94327,012,0002,000,0002,486,272
6Feb 19, 2024 13:0133,01861,322,82027,053,0002,003,0002,490,368
7Feb 19, 2024 13:0133,04757,288,98027,076,0002,005,0002,289,664
8Feb 19, 2024 13:0133,12054,975,16128,141,0001,005,0002,494,464
9Feb 19, 2024 13:0133,13956,922,43827,151,0002,011,0002,289,664
10Feb 19, 2024 13:0134,09098,763,62229,999,16102,211,840
11Feb 19, 2024 13:0134,21484,532,68630,108,18502,211,840
12Feb 19, 2024 13:0134,24297,473,90630,132,73902,207,744