GitLab Commit is coming up on August 3-4. Learn how to innovate together using GitLab, the DevOps platform. Register for free: gitlabcommitvirtual2021.com

Commit ebec27d5 authored by Elton (Eddie) Hartman's avatar Elton (Eddie) Hartman
Browse files

Problem 12 changed task limit to be based on the number of Logical Processors available.

parent 95d502ed
......@@ -28,7 +28,7 @@ namespace ProjectEulerExercises.Problems
//I'd almost deem it unecessary if it weren't for the chance of tasks completing out of order since we're
// not guaranteed that the first answer is the correct one. You have to wait for the number of
// tasks in this limit to complete first.
const int TASK_NUMBER_LIMIT = 100;
static readonly int TASK_NUMBER_LIMIT = Environment.ProcessorCount * 4;
/// <summary>
/// Finds the first triangle number to have over n divisors.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment