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 18, 2024 20:51Ivan BessonovIvan BessonovScore: 21,265Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 18, 2024 20:5120,47038,059,30617,014,0001,000,0002,289,664
2May 18, 2024 20:5120,57543,451,08917,101,0001,005,0002,289,664
3May 18, 2024 20:5120,58541,232,49816,103,0002,012,0002,289,664
4May 18, 2024 20:5120,60043,927,13616,114,0002,014,0002,289,664
5May 18, 2024 20:5120,60940,654,38717,129,0001,007,0002,289,664
6May 18, 2024 20:5121,20897,812,14418,663,15102,179,072
7May 18, 2024 20:5121,26591,143,28618,713,44702,191,360
8May 18, 2024 20:5121,33148,169,18917,729,0001,042,0002,318,336
9May 18, 2024 20:5121,46336,015,09917,893,000994,0002,289,664
10May 18, 2024 20:5121,46632,664,16817,896,000994,0002,289,664
11May 18, 2024 20:5121,50039,971,94316,929,0001,991,0002,289,664
12May 18, 2024 20:5121,78797,688,97319,172,66202,179,072