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 listJul 2, 2021 20:04alex3dalex3dScore: 32,816Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 2, 2021 20:0432,37286,921,55228,487,32702,244,608
2Jul 2, 2021 20:0432,439102,024,05728,546,55602,252,800
3Jul 2, 2021 20:0432,44594,638,60528,551,47702,256,896
4Jul 2, 2021 20:0432,61754,657,32327,678,0001,025,0002,269,184
5Jul 2, 2021 20:0432,78554,455,08627,857,000994,0002,289,664
6Jul 2, 2021 20:0432,80054,683,20328,864,00002,289,664
7Jul 2, 2021 20:0432,81658,543,71226,887,0001,991,0002,289,664
8Jul 2, 2021 20:0432,83058,117,21026,898,0001,992,0002,289,664
9Jul 2, 2021 20:0432,83056,146,74826,898,0001,992,0002,289,664
10Jul 2, 2021 20:0432,83658,157,93426,904,0001,992,0002,289,664
11Jul 2, 2021 20:0432,84853,790,87027,910,000996,0002,265,088
12Jul 2, 2021 20:0432,86454,193,27926,926,0001,994,0002,273,280