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 listApr 30, 2025 12:24KeefeKeefeScore: 74,486Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 30, 2025 12:2474,25094,717,55665,340,00002,273,280
2Apr 30, 2025 12:2474,33185,610,80064,405,0001,006,0002,387,968
3Apr 30, 2025 12:2474,34096,373,16565,419,00002,273,280
4Apr 30, 2025 12:2474,37392,204,08564,442,0001,006,0002,273,280
5Apr 30, 2025 12:2474,39887,590,87464,463,0001,007,0002,383,872
6Apr 30, 2025 12:2474,41687,090,33365,486,00002,273,280
7Apr 30, 2025 12:2474,42388,014,65664,485,0001,007,0002,392,064
8Apr 30, 2025 12:2474,44493,839,83365,511,00002,387,968
9Apr 30, 2025 12:2474,45794,794,52965,522,00002,273,280
10Apr 30, 2025 12:2474,48687,782,39664,540,0001,008,0002,375,680
11Apr 30, 2025 12:2474,524100,465,39564,573,0001,008,0002,273,280
12Apr 30, 2025 12:2474,52692,754,68964,575,0001,008,0002,273,280
13Apr 30, 2025 12:2474,66899,204,75764,698,0001,010,0002,273,280
14Apr 30, 2025 12:2474,69096,632,84965,727,00002,273,280
15Apr 30, 2025 12:2474,81995,582,53863,846,0001,995,0002,273,280
16Apr 30, 2025 12:2474,85288,252,93662,876,0002,994,0002,473,984
17Apr 30, 2025 12:2474,85791,623,85963,878,0001,996,0002,379,776
18Apr 30, 2025 12:2475,04796,637,09065,041,0001,000,0002,273,280