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 5, 2024 23:12Joad NacerJoad NacerScore: 51,073Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 5, 2024 23:1250,58968,395,74844,518,00002,527,232
2Dec 5, 2024 23:1251,07370,339,20742,947,0001,997,0002,277,376
3Dec 5, 2024 23:1254,58171,890,29447,031,0001,000,0002,527,232