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 5, 2024 08:43Ivan BessonovIvan BessonovScore: 47,597Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 5, 2024 08:4147,19462,270,77540,519,0001,012,0002,289,664
2May 5, 2024 08:4147,25768,036,65940,572,0001,014,0002,289,664
3May 5, 2024 08:4347,28562,993,04240,597,0001,014,0002,277,376
4May 5, 2024 08:4347,30670,752,76740,614,0001,015,0002,289,664
5May 5, 2024 08:4147,35171,486,68940,653,0001,016,0002,289,664
6May 5, 2024 08:4147,40672,281,26440,700,0001,017,0002,289,664
7May 5, 2024 08:4147,41074,425,96940,704,0001,017,0002,523,136
8May 5, 2024 08:4147,43469,224,87041,742,00002,289,664
9May 5, 2024 08:4347,43475,161,90640,724,0001,018,0002,289,664
10May 5, 2024 08:4347,43567,657,26040,725,0001,018,0002,269,184
11May 5, 2024 08:4147,59168,768,38241,880,00002,289,664
12May 5, 2024 08:4347,59273,518,71641,881,00002,269,184
13May 5, 2024 08:4347,59766,488,95839,891,0001,994,0002,289,664
14May 5, 2024 08:4347,59869,995,01240,889,000997,0002,527,232
15May 5, 2024 08:4347,60169,525,99539,895,0001,994,0002,277,376
16May 5, 2024 08:4347,60567,258,78339,898,0001,994,0002,265,088
17May 5, 2024 08:4147,60670,321,37739,899,0001,994,0002,289,664
18May 5, 2024 08:4147,795106,294,90142,059,77502,260,992
19May 5, 2024 08:4347,85394,241,54242,110,69002,265,088
20May 5, 2024 08:4147,86763,408,76540,118,0002,005,0002,347,008
21May 5, 2024 08:4147,89896,640,24942,150,09902,265,088
22May 5, 2024 08:4147,931101,082,88942,178,84402,256,896
23May 5, 2024 08:4347,991100,181,13142,232,23602,260,992
24May 5, 2024 08:4347,995107,302,47642,235,21602,252,800