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 24, 2023 01:55Kenneth MaplesKenneth MaplesScore: 18,679Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 24, 2023 01:5518,64683,773,90416,408,21202,232,320
2Dec 24, 2023 01:5518,64779,585,74216,409,76502,232,320
3Dec 24, 2023 02:1518,65566,308,94216,416,00302,232,320
4Dec 24, 2023 01:5518,66498,268,10016,424,22202,236,416
5Dec 24, 2023 02:1518,67973,957,87516,437,50202,240,512
6Dec 24, 2023 02:0018,69756,871,89916,453,09902,232,320
7Dec 24, 2023 02:0018,70262,229,06516,457,53702,236,416
8Dec 24, 2023 02:1518,70695,521,62716,461,62002,232,320
9Dec 24, 2023 02:0018,73283,328,09716,483,77202,236,416