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 16, 2024 10:34Ivan BessonovIvan BessonovScore: 51,256Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 16, 2024 10:3446,743105,344,87741,133,78902,260,992
2May 16, 2024 10:3446,891111,649,49541,263,80602,252,800
3May 16, 2024 10:3446,901106,294,22141,273,24702,252,800
4May 16, 2024 10:3451,05272,359,55042,930,0001,996,0002,289,664
5May 16, 2024 10:3451,06068,746,48542,936,0001,997,0002,269,184
6May 16, 2024 10:3451,18067,455,15944,038,0001,000,0002,383,872
7May 16, 2024 10:3451,25669,988,26243,101,0002,004,0002,269,184
8May 16, 2024 10:3451,26575,766,66744,111,0001,002,0002,277,376
9May 16, 2024 10:3451,26569,247,48643,108,0002,005,0002,269,184
10May 16, 2024 10:3451,30269,015,49543,140,0002,006,0002,289,664
11May 16, 2024 10:3451,34169,848,74043,172,0002,008,0002,289,664
12May 16, 2024 10:3451,47367,379,43543,283,0002,013,0002,281,472