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 14:45Ivan BessonovIvan BessonovScore: 19,648Success
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 14:4519,50740,100,29515,147,0002,019,0002,306,048
2May 18, 2024 14:4519,59048,133,98815,211,0002,028,0002,289,664
3May 18, 2024 14:4519,59140,857,98016,226,0001,014,0002,306,048
4May 18, 2024 14:4519,60139,687,73215,220,0002,029,0002,289,664
5May 18, 2024 14:4519,61539,255,95415,231,0002,030,0002,301,952
6May 18, 2024 14:4519,62438,289,23515,238,0002,031,0002,424,832
7May 18, 2024 14:4519,64842,204,59915,256,0002,034,0002,289,664
8May 18, 2024 14:4519,66934,525,50215,273,0002,036,0002,289,664
9May 18, 2024 14:4520,33645,306,03516,902,000994,0002,306,048
10May 18, 2024 14:4522,09163,888,50019,440,16602,277,376
11May 18, 2024 14:4522,26987,991,32219,597,00402,285,568
12May 18, 2024 14:4522,27693,378,98319,602,47102,408,448