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 17:38Ivan BessonovIvan BessonovScore: 17,500Success
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 17:3817,34932,188,02713,232,0002,035,0002,297,856
2May 18, 2024 17:3817,39134,258,50813,264,0002,040,0002,289,664
3May 18, 2024 17:3817,40831,151,29713,277,0002,042,0002,301,952
4May 18, 2024 17:3817,41332,321,17113,280,0002,043,0002,301,952
5May 18, 2024 17:3817,46637,620,25415,370,00002,301,952
6May 18, 2024 17:3817,49235,533,95414,367,0001,026,0002,289,664
7May 18, 2024 17:3817,50032,153,24014,374,0001,026,0002,289,664
8May 18, 2024 17:3817,50138,036,22515,401,00002,289,664
9May 18, 2024 17:3817,52535,648,71513,366,0002,056,0002,289,664
10May 18, 2024 17:3818,84394,174,61116,581,86002,273,280
11May 18, 2024 17:3819,08781,114,61116,796,72602,256,896
12May 18, 2024 17:3819,10273,411,33516,809,50202,285,568