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:56Ivan BessonovIvan BessonovScore: 48,430Success
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:5643,754106,458,73538,503,94602,252,800
2May 8, 2024 13:5644,012118,070,87038,730,75802,273,280
3May 8, 2024 13:5644,203106,041,28338,898,86602,252,800
4May 8, 2024 13:5648,29163,510,50741,485,0001,011,0002,277,376
5May 8, 2024 13:5648,33468,854,37841,522,0001,012,0002,289,664
6May 8, 2024 13:5648,37564,661,40341,557,0001,013,0002,375,680
7May 8, 2024 13:5648,43065,067,11240,636,0001,982,0002,289,664
8May 8, 2024 13:5648,45069,404,48142,636,00002,277,376
9May 8, 2024 13:5648,49266,822,58742,673,00002,277,376
10May 8, 2024 13:5648,53170,035,12841,691,0001,016,0002,289,664
11May 8, 2024 13:5648,72069,051,98340,880,0001,994,0002,289,664
12May 8, 2024 13:5648,75765,188,16241,909,000997,0002,289,664