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 listMay 18, 2024 15:01Ivan BessonovIvan BessonovScore: 19,235Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 18, 2024 15:0118,98341,665,17116,705,00002,297,856
2May 18, 2024 15:0119,03032,606,10716,746,00002,289,664
3May 18, 2024 15:0119,16042,348,32716,861,00002,310,144
4May 18, 2024 15:0119,19942,172,46715,902,000993,0002,289,664
5May 18, 2024 15:0119,21138,571,47716,906,00002,289,664
6May 18, 2024 15:0119,21741,578,71214,922,0001,989,0002,289,664
7May 18, 2024 15:0119,23539,001,02415,932,000995,0002,289,664
8May 18, 2024 15:0119,28438,435,71015,972,000998,0002,301,952
9May 18, 2024 15:0119,84163,165,83017,460,28402,285,568
10May 18, 2024 15:0119,87075,206,86317,485,78102,277,376
11May 18, 2024 15:0119,90981,281,45117,520,16202,277,376
12May 18, 2024 15:0119,95734,798,97916,529,0001,033,0002,383,872