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 16:03Ivan BessonovIvan BessonovScore: 19,425Success
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 16:0319,32541,253,35715,006,0002,000,0002,310,144
2May 18, 2024 16:0319,33535,513,07615,014,0002,001,0002,289,664
3May 18, 2024 16:0319,34137,448,44215,018,0002,002,0002,301,952
4May 18, 2024 16:0319,34944,219,76515,024,0002,003,0002,289,664
5May 18, 2024 16:0319,39943,190,72715,063,0002,008,0002,289,664
6May 18, 2024 16:0319,41141,725,98415,073,0002,009,0002,289,664
7May 18, 2024 16:0319,42540,576,07416,089,0001,005,0002,310,144
8May 18, 2024 16:0319,47543,183,59715,122,0002,016,0002,289,664
9May 18, 2024 16:0320,13344,220,86416,675,0001,042,0002,289,664
10May 18, 2024 16:0320,88687,262,01018,379,28502,285,568
11May 18, 2024 16:0321,03081,726,97818,506,80302,289,664
12May 18, 2024 16:0321,05077,869,50518,523,57702,285,568