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 17, 2024 07:50Ivan BessonovIvan BessonovScore: 24,001Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2024 07:5023,91842,377,36419,044,0002,004,0002,289,664
2May 17, 2024 07:5023,95942,010,79319,076,0002,008,0002,289,664
3May 17, 2024 07:5023,99341,166,18019,104,0002,010,0002,269,184
4May 17, 2024 07:5023,99545,234,29519,105,0002,011,0002,289,664
5May 17, 2024 07:5023,99948,278,58619,108,0002,011,0002,281,472
6May 17, 2024 07:5024,00040,139,86520,115,0001,005,0002,289,664
7May 17, 2024 07:5024,00143,322,10219,110,0002,011,0002,289,664
8May 17, 2024 07:5024,01538,508,45619,121,0002,012,0002,289,664
9May 17, 2024 07:5024,20744,209,72519,274,0002,028,0002,269,184
10May 17, 2024 07:5025,35083,225,03822,307,94802,260,992
11May 17, 2024 07:5025,41483,734,17122,364,02702,269,184
12May 17, 2024 07:5025,52095,967,98622,457,23002,256,896