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 14:33wainCGPwainCGPScore: 36,847Success
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 14:3336,53457,753,00327,127,0005,023,0002,355,200
2Feb 24, 2025 14:3336,61653,893,59027,188,0005,034,0002,277,376
3Feb 24, 2025 14:3336,81155,754,31627,333,0005,061,0002,359,296
4Feb 24, 2025 14:3336,84253,487,04128,369,0004,052,0002,486,272
5Feb 24, 2025 14:3336,84759,143,91428,372,0004,053,0002,461,696
6Feb 24, 2025 14:3336,89354,860,88228,408,0004,058,0002,506,752
7Feb 24, 2025 14:3336,90254,665,89527,400,0005,074,0002,318,336
8Feb 24, 2025 14:3336,92058,820,08627,414,0005,076,0002,506,752
9Feb 24, 2025 14:3337,01457,204,94127,483,0005,089,0002,449,408