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 listFeb 20, 2025 17:03wainCGPwainCGPScore: 1,554,728Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 20, 2025 17:031,543,6471,386,127,2801,354,411,0003,998,0002,289,664
2Feb 20, 2025 17:031,543,6651,381,651,9441,354,427,0003,998,0002,277,376
3Feb 20, 2025 17:031,546,9571,390,371,5561,358,324,0002,998,0002,277,376
4Feb 20, 2025 17:031,550,9841,387,834,4921,360,867,0003,999,0002,277,376
5Feb 20, 2025 17:031,554,7281,390,831,7131,366,161,0002,000,0002,469,888
6Feb 20, 2025 17:031,556,4851,394,609,0501,366,708,0002,999,0002,469,888
7Feb 20, 2025 17:031,559,1491,398,853,2851,370,051,0002,000,0002,473,984
8Feb 20, 2025 17:031,561,3301,401,013,6001,369,971,0003,999,0002,289,664
9Feb 20, 2025 17:031,564,0971,399,743,7031,372,407,0003,998,0002,289,664