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 9, 2024 22:38zielajzielajScore: 26,023Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 9, 2024 22:3826,02248,556,08521,904,000995,0002,531,328
2Dec 9, 2024 22:3826,02349,565,13921,905,000995,0002,359,296
3Dec 9, 2024 22:3826,02452,335,79420,910,0001,991,0002,359,296