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 listMay 17, 2024 08:58Ivan BessonovIvan BessonovScore: 23,434Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2024 08:5823,26844,805,44019,453,0001,023,0002,269,184
2May 17, 2024 08:5823,30246,392,10019,481,0001,025,0002,281,472
3May 17, 2024 08:5823,32648,070,96619,501,0001,026,0002,527,232
4May 17, 2024 08:5823,33242,964,88819,506,0001,026,0002,523,136
5May 17, 2024 08:5823,38841,670,94720,581,00002,289,664
6May 17, 2024 08:5823,41542,446,59219,575,0001,030,0002,289,664
7May 17, 2024 08:5823,43440,329,96519,591,0001,031,0002,392,064
8May 17, 2024 08:5823,45546,278,38519,608,0001,032,0002,289,664
9May 17, 2024 08:5823,52345,410,96119,665,0001,035,0002,289,664
10May 17, 2024 08:5824,43991,031,29121,506,46002,256,896
11May 17, 2024 08:5824,45086,893,41021,516,18002,265,088
12May 17, 2024 08:5824,541100,276,13721,595,64502,256,896