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 22, 2024 08:58Ivan BessonovIvan BessonovError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 22, 2024 08:5100000Error: expected "50967194573034 ", got "50967136507627 "
2May 22, 2024 08:5815,03131,915,52312,210,0001,017,0002,289,664
3May 22, 2024 08:5815,09230,193,93111,238,0002,043,0002,289,664
4May 22, 2024 08:5815,16034,327,00211,289,0002,052,0002,289,664
5May 22, 2024 08:5815,16529,564,95412,319,0001,026,0002,351,104
6May 22, 2024 08:5815,31934,725,68612,444,0001,037,0002,289,664
7May 22, 2024 08:5815,67039,080,61412,730,0001,060,0002,445,312
8May 22, 2024 08:5815,68431,165,35612,741,0001,061,0002,465,792
9May 22, 2024 08:5815,81434,204,60011,928,0001,988,0002,347,008
10May 22, 2024 08:5815,82185,412,54313,922,51502,334,720
11May 22, 2024 08:5815,83835,564,13912,942,000995,0002,289,664
12May 22, 2024 08:5815,91089,656,44914,001,09202,211,840
13May 22, 2024 08:5815,95880,084,23614,043,18002,334,720