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:10Huy Duc LeHuy Duc LeScore: 30,099Success
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:1029,81549,024,73224,219,0002,018,0002,289,664
2Feb 20, 2024 03:1029,99449,140,28125,380,0001,015,0002,289,664
3Feb 20, 2024 03:1030,03247,302,14625,412,0001,016,0002,289,664
4Feb 20, 2024 03:1030,06148,511,75826,454,00002,289,664
5Feb 20, 2024 03:1030,07352,904,24325,447,0001,017,0002,482,176
6Feb 20, 2024 03:1030,08959,183,44325,460,0001,018,0002,494,464
7Feb 20, 2024 03:1030,09957,084,93526,487,00002,490,368
8Feb 20, 2024 03:1030,15348,287,55425,515,0001,020,0002,486,272
9Feb 20, 2024 03:1030,21649,474,91225,568,0001,022,0002,494,464
10Feb 20, 2024 03:1030,27575,079,18026,641,95502,215,936
11Feb 20, 2024 03:1030,27697,699,46526,643,12202,224,128
12Feb 20, 2024 03:1030,37692,875,04726,730,57102,211,840