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:14Ivan BessonovIvan BessonovScore: 19,299Success
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:1419,23145,539,25014,932,0001,991,0002,306,048
2May 18, 2024 15:1419,23638,039,79614,937,0001,991,0002,310,144
3May 18, 2024 15:1419,23932,403,63714,939,0001,991,0002,289,664
4May 18, 2024 15:1419,26737,220,94414,961,0001,994,0002,301,952
5May 18, 2024 15:1419,27344,802,39114,965,0001,995,0002,289,664
6May 18, 2024 15:1419,28943,131,98315,976,000998,0002,301,952
7May 18, 2024 15:1419,29941,091,88714,985,0001,998,0002,289,664
8May 18, 2024 15:1419,31341,813,64414,996,0001,999,0002,306,048
9May 18, 2024 15:1419,36344,297,82015,035,0002,004,0002,289,664
10May 18, 2024 15:1420,36580,717,08617,921,12202,289,664
11May 18, 2024 15:1420,71190,532,96718,225,38602,293,760
12May 18, 2024 15:1420,73983,262,92618,250,52302,285,568