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 19, 2024 08:53Ivan BessonovIvan BessonovScore: 16,961Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 19, 2024 08:5316,93431,492,06213,909,000993,0002,342,912
2May 19, 2024 08:5316,94731,373,49113,919,000994,0002,342,912
3May 19, 2024 08:5316,94935,896,30613,921,000994,0002,289,664
4May 19, 2024 08:5316,95330,464,67313,925,000994,0002,334,720
5May 19, 2024 08:5316,95737,475,40313,928,000994,0002,445,312
6May 19, 2024 08:5316,95848,020,99113,929,000994,0002,289,664
7May 19, 2024 08:5316,96137,031,20412,936,0001,990,0002,289,664
8May 19, 2024 08:5316,96438,665,63413,862,0001,066,0002,338,816
9May 19, 2024 08:5317,49240,249,68913,341,0002,052,0002,326,528
10May 19, 2024 08:5318,04386,458,62615,878,03602,191,360
11May 19, 2024 08:5318,15854,783,28615,979,34902,191,360
12May 19, 2024 08:5318,20885,695,47516,023,21202,187,264