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 9, 2024 11:50Ivan BessonovIvan BessonovScore: 48,736Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 9, 2024 11:5044,852107,058,47939,469,94202,265,088
2May 9, 2024 11:5044,925105,389,73839,533,71802,256,896
3May 9, 2024 11:5044,94498,144,58939,550,36102,260,992
4May 9, 2024 11:5048,55064,062,42340,737,0001,987,0002,277,376
5May 9, 2024 11:5048,58070,590,88642,750,00002,396,160
6May 9, 2024 11:5048,62069,452,75042,786,00002,289,664
7May 9, 2024 11:5048,73668,939,60040,894,0001,994,0002,289,664
8May 9, 2024 11:5048,74272,683,02241,896,000997,0002,289,664
9May 9, 2024 11:5048,77266,894,87841,898,0001,021,0002,273,280
10May 9, 2024 11:5048,87869,835,31641,013,0002,000,0002,281,472
11May 9, 2024 11:5048,91666,488,03441,044,0002,002,0002,289,664
12May 9, 2024 11:5048,98267,162,08541,100,0002,004,0002,289,664