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 14, 2024 21:17Yuriy LyfenkoYuriy LyfenkoScore: 9,761,715Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 14, 2024 21:179,672,7348,550,115,9268,470,041,00041,965,0002,383,872
2Dec 14, 2024 21:179,761,7158,628,100,0028,553,343,00036,966,0002,498,560
3Dec 14, 2024 21:179,854,3098,708,910,2088,627,829,00043,963,0002,498,560