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 8, 2024 21:05zielajzielajScore: 55,053Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 8, 2024 21:0554,92372,477,92148,332,00002,531,328
2Dec 8, 2024 21:0555,05377,231,89648,447,00002,428,928
3Dec 8, 2024 21:0555,10175,013,62848,489,00002,424,832