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 20, 2024 03:50Huy Duc LeHuy Duc LeScore: 38,631Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 20, 2024 03:5038,50164,100,18831,888,0001,993,0002,289,664
2Feb 20, 2024 03:5038,52361,688,71431,906,0001,994,0002,330,624
3Feb 20, 2024 03:5038,56557,238,47431,941,0001,996,0002,326,528
4Feb 20, 2024 03:5038,59262,142,41031,964,0001,997,0002,289,664
5Feb 20, 2024 03:5038,59559,169,23131,967,0001,997,0002,289,664
6Feb 20, 2024 03:5038,62858,265,70031,994,0001,999,0002,289,664
7Feb 20, 2024 03:5038,63167,001,67831,996,0001,999,0002,289,664
8Feb 20, 2024 03:5038,65957,602,71332,019,0002,001,0002,326,528
9Feb 20, 2024 03:5038,72468,468,43233,075,0001,002,0002,490,368
10Feb 20, 2024 03:5039,034104,373,89934,349,52802,215,936
11Feb 20, 2024 03:5039,048100,134,92734,362,57902,220,032
12Feb 20, 2024 03:5039,447109,910,75034,712,95102,215,936