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 24, 2025 15:18wainCGPwainCGPScore: 35,845Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 24, 2025 15:1835,53853,182,00627,238,0004,035,0002,326,528
2Feb 24, 2025 15:1835,84555,947,36928,492,0003,052,0002,387,968
3Feb 24, 2025 15:1836,05357,274,38526,610,0005,117,0002,498,560