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 listMar 8, 2025 12:27wainCGPwainCGPScore: 18,543Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 8, 2025 12:2718,47834,267,92014,229,0002,032,0002,387,968
2Mar 8, 2025 12:2718,54341,018,83816,318,00002,289,664
3Mar 8, 2025 12:2718,66032,040,11014,369,0002,052,0002,289,664