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 listDec 24, 2023 01:13Kenneth MaplesKenneth MaplesScore: 26,182Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 24, 2023 01:1326,11052,428,39020,979,0001,998,0002,265,088
2Dec 24, 2023 01:1326,11153,262,15220,980,0001,998,0002,265,088
3Dec 24, 2023 01:1326,15949,118,90022,020,0001,000,0002,265,088
4Dec 24, 2023 01:1326,17453,420,79722,032,0001,001,0002,379,776
5Dec 24, 2023 01:1326,17452,284,60721,031,0002,002,0002,265,088
6Dec 24, 2023 01:1326,18147,488,42322,038,0001,001,0002,510,848
7Dec 24, 2023 01:1326,18252,861,34921,037,0002,003,0002,396,160
8Dec 24, 2023 01:1326,19149,108,34222,046,0001,002,0002,392,064
9Dec 24, 2023 01:1326,33546,127,24521,160,0002,015,0002,383,872
10Dec 24, 2023 01:1329,185102,141,30925,682,43502,244,608
11Dec 24, 2023 01:1329,22885,430,99225,720,60302,244,608
12Dec 24, 2023 01:1329,23373,498,60025,725,38502,236,416