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:12Huy Duc LeHuy Duc LeScore: 59,043Success
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:1255,446124,249,52848,792,47002,260,992
2Feb 18, 2024 11:1255,567116,947,59548,898,76102,265,088
3Feb 18, 2024 11:1255,621106,944,59348,946,55502,252,800
4Feb 18, 2024 11:1258,95678,298,79150,884,000997,0002,289,664
5Feb 18, 2024 11:1258,96576,459,21449,894,0001,995,0002,527,232
6Feb 18, 2024 11:1258,96979,780,31749,898,0001,995,0002,289,664
7Feb 18, 2024 11:1259,04377,521,05550,959,000999,0002,289,664
8Feb 18, 2024 11:1259,04879,007,75949,964,0001,998,0002,289,664
9Feb 18, 2024 11:1259,05575,534,54549,970,0001,998,0002,289,664
10Feb 18, 2024 11:1259,05576,181,45749,970,0001,998,0002,289,664
11Feb 18, 2024 11:1259,07873,554,95450,990,000999,0002,265,088
12Feb 18, 2024 11:1259,21679,218,11050,106,0002,004,0002,273,280