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:11Yuriy LyfenkoYuriy LyfenkoScore: 9,834,542Success
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:119,751,6728,617,460,8958,538,524,00042,947,0002,502,656
2Dec 14, 2024 21:119,834,5428,695,201,0458,612,454,00041,943,0002,502,656
3Dec 14, 2024 21:119,876,0098,725,088,9598,648,923,00041,965,0002,502,656