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 8, 2024 13:52Ivan BessonovIvan BessonovScore: 48,527Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 8, 2024 13:5243,89092,460,18938,623,20002,256,896
2May 8, 2024 13:5243,936105,979,72938,663,53202,260,992
3May 8, 2024 13:5244,160107,282,83038,861,19502,252,800
4May 8, 2024 13:5248,30267,685,96841,494,0001,012,0002,289,664
5May 8, 2024 13:5248,43265,847,75042,620,00002,273,280
6May 8, 2024 13:5248,46768,371,12141,636,0001,015,0002,289,664
7May 8, 2024 13:5248,52769,675,91141,688,0001,016,0002,289,664
8May 8, 2024 13:5248,53668,622,78141,696,0001,016,0002,277,376
9May 8, 2024 13:5248,58174,813,15841,734,0001,017,0002,289,664
10May 8, 2024 13:5248,58274,683,82041,735,0001,017,0002,277,376
11May 8, 2024 13:5248,58373,518,17842,753,00002,293,760
12May 8, 2024 13:5248,81366,490,64140,958,0001,997,0002,289,664