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 17, 2024 07:31Ivan BessonovIvan BessonovScore: 29,549Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2024 07:3129,24857,665,92824,709,0001,029,0002,277,376
2May 17, 2024 07:3129,42354,226,56024,897,000995,0002,289,664
3May 17, 2024 07:3129,43456,180,20724,906,000996,0002,289,664
4May 17, 2024 07:3129,44349,531,18125,910,00002,289,664
5May 17, 2024 07:3129,51847,592,26824,977,000999,0002,281,472
6May 17, 2024 07:3129,54149,713,13423,997,0001,999,0002,289,664
7May 17, 2024 07:3129,54948,803,86325,003,0001,000,0002,289,664
8May 17, 2024 07:3129,59953,934,90325,046,0001,001,0002,281,472
9May 17, 2024 07:3129,67648,664,24724,107,0002,008,0002,273,280
10May 17, 2024 07:3131,634103,420,39327,837,70802,260,992
11May 17, 2024 07:3131,702108,976,83827,897,79102,252,800
12May 17, 2024 07:3131,737103,614,12727,928,53502,269,184