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 listDec 23, 2023 07:35Kenneth MaplesKenneth MaplesScore: 48,224Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 23, 2023 07:3544,336110,345,79439,015,42702,252,800
2Dec 23, 2023 07:3544,339116,174,40439,018,51102,256,896
3Dec 23, 2023 07:3544,37381,408,25939,048,12102,260,992
4Dec 23, 2023 07:3548,11864,287,22041,336,0001,008,0002,289,664
5Dec 23, 2023 07:3548,15067,909,61041,364,0001,008,0002,392,064
6Dec 23, 2023 07:3548,16965,967,96542,389,00002,289,664
7Dec 23, 2023 07:3548,22467,725,41641,427,0001,010,0002,269,184
8Dec 23, 2023 07:3548,22864,474,10842,441,00002,289,664
9Dec 23, 2023 07:3548,23164,191,55441,433,0001,010,0002,289,664
10Dec 23, 2023 07:3548,30366,814,52041,495,0001,012,0002,289,664
11Dec 23, 2023 07:3548,38567,048,44941,566,0001,013,0002,289,664
12Dec 23, 2023 07:3548,47269,337,29541,640,0001,015,0002,289,664