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 23, 2024 19:21CemaCemaScore: 6,792,096Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 23, 2024 19:216,780,9206,022,205,7735,967,209,60602,248,704
2May 23, 2024 19:216,792,0966,051,162,1225,977,044,04902,252,800
3May 23, 2024 19:216,814,6946,068,737,9645,996,930,88702,252,800