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 8, 2025 05:33mgildermgilderScore: 3,689,984Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 8, 2025 05:333,650,6853,237,057,4693,210,604,0001,999,0002,281,472
2Feb 8, 2025 05:333,673,5993,262,613,1233,230,768,0001,999,0002,289,664
3Feb 8, 2025 05:333,684,3433,273,212,5823,241,223,000999,0002,289,664
4Feb 8, 2025 05:333,684,3733,270,000,5513,241,249,000999,0002,367,488
5Feb 8, 2025 05:333,689,9843,271,554,5513,246,187,000999,0002,367,488
6Feb 8, 2025 05:333,690,0113,275,410,8713,247,210,00002,363,392
7Feb 8, 2025 05:333,691,4943,272,786,3083,246,516,0001,999,0002,281,472
8Feb 8, 2025 05:333,693,5243,278,855,2843,249,302,000999,0002,289,664
9Feb 8, 2025 05:333,695,0773,276,526,5543,249,669,0001,999,0002,281,472