Skip to content

Commit

Permalink
dotnet format
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Sep 16, 2024
1 parent 45b1c54 commit e167c33
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions csharp/Euler/p0005.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ public object Answer()
{
int answer = 1;
byte[] factorTracker = new byte[20], localFactorTracker = new byte[20];
for (byte i = 2; i < 21; i++) {
for (byte i = 2; i < 21; i++)
{
foreach (byte p in Prime.PrimeFactors(i))
localFactorTracker[p]++;
for (byte j = 2; j < 20; j++) {
for (byte j = 2; j < 20; j++)
{
factorTracker[j] = Math.Max(factorTracker[j], localFactorTracker[j]);
localFactorTracker[j] = 0;
}
Expand Down

0 comments on commit e167c33

Please sign in to comment.