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 listFeb 15, 2023 22:35LiamLiamScore: 6,792,167Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 15, 2023 22:356,778,6866,034,030,3955,965,243,47402,256,896
2Feb 15, 2023 22:356,792,1676,052,719,0245,977,106,63002,252,800
3Feb 15, 2023 22:356,812,5286,068,018,3405,995,024,95602,252,800