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:24Ivan BessonovIvan BessonovScore: 19,882Success
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:2519,65740,106,78716,281,0001,017,0002,289,664
2May 18, 2024 14:2519,71441,399,05216,328,0001,020,0002,306,048
3May 18, 2024 14:2419,75139,641,94417,381,00002,289,664
4May 18, 2024 14:2519,76042,706,44717,389,00002,289,664
5May 18, 2024 14:2419,78042,013,20215,359,0002,047,0002,289,664
6May 18, 2024 14:2519,79347,677,05316,394,0001,024,0002,306,048
7May 18, 2024 14:2519,81139,659,02016,409,0001,025,0002,289,664
8May 18, 2024 14:2419,81441,434,25116,411,0001,025,0002,301,952
9May 18, 2024 14:2519,83039,169,23417,450,00002,289,664
10May 18, 2024 14:2519,84341,695,56517,462,00002,306,048
11May 18, 2024 14:2419,85140,364,34016,442,0001,027,0002,289,664
12May 18, 2024 14:2419,86346,043,15116,451,0001,028,0002,301,952
13May 18, 2024 14:2519,88238,982,31416,467,0001,029,0002,289,664
14May 18, 2024 14:2520,00035,034,19516,565,0001,035,0002,289,664
15May 18, 2024 14:2420,32634,280,30115,900,0001,987,0002,301,952
16May 18, 2024 14:2420,49544,432,90016,032,0002,004,0002,289,664
17May 18, 2024 14:2420,54442,754,36116,071,0002,008,0002,297,856
18May 18, 2024 14:2420,77047,795,37217,316,000962,0002,306,048
19May 18, 2024 14:2421,30580,183,50518,748,45702,285,568
20May 18, 2024 14:2421,32861,397,70518,768,43202,285,568
21May 18, 2024 14:2521,33588,977,16818,775,19602,285,568
22May 18, 2024 14:2521,395107,008,79318,827,16902,277,376
23May 18, 2024 14:2521,84875,634,02419,226,23402,252,800
24May 18, 2024 14:2422,10280,893,15119,449,37402,285,568