CS
cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
/*
1. You can change the base, how many numbers you want to check and which number you want to count
2. Changing the base or the number you want to count would make the numbers you find not actual odious numbers :P
3. Yes this is taken straight from my dec to base 36-2 converter cuz I'm lazy xd
Challenge link: https://www.sololearn.com/Discuss/915458/?ref=app
*/
namespace Nick
{
class Program
{
static void Main(string[] odious_numbers)
{
//declaration
ulong bas = 2, i = 0, odious = 0;
string b = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; //Choose a base up to 36
char check = '1'; //Choose which number to count
while (i < 10000) { //Choose how many numbers to check
ulong x = 0, temp, y = 0, count = 0, c = 0;
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run