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 listOct 4, 2023 12:29Robert BurkeRobert BurkeScore: 21,731Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 4, 2023 12:2918,02585,804,18115,862,24902,232,320
2Oct 4, 2023 12:2918,13880,223,92915,961,81302,220,032
3Oct 4, 2023 12:2918,14652,665,46915,968,88202,232,320
4Oct 4, 2023 12:2921,59839,656,95417,006,0002,000,0002,392,064
5Oct 4, 2023 12:2921,63643,440,47217,036,0002,004,0002,535,424
6Oct 4, 2023 12:2921,71744,467,67318,106,0001,005,0002,273,280
7Oct 4, 2023 12:2921,73141,896,72817,110,0002,013,0002,273,280
8Oct 4, 2023 12:2921,78240,747,59818,160,0001,008,0002,273,280
9Oct 4, 2023 12:2921,81934,200,33417,180,0002,021,0002,387,968
10Oct 4, 2023 12:2921,84140,543,48616,186,0003,034,0002,392,064
11Oct 4, 2023 12:2921,84542,194,49018,213,0001,011,0002,535,424
12Oct 4, 2023 12:2921,89548,418,97417,240,0002,028,0002,392,064