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 listMay 24, 2024 05:00CemaCemaScore: 6,777,177Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 24, 2024 05:006,777,0126,025,905,6405,963,770,20702,240,512
2May 24, 2024 05:006,777,1776,019,170,5805,963,915,56002,252,800
3May 24, 2024 05:006,779,6106,031,828,1045,966,057,16002,244,608