C
C#Arrival

Can anyone help me with the odd prime numbers program?

Facing difficulty in college assignment.
No description
E
eddyrick14d ago
do you have a plan outlined or any thoughts on how to acheive this?
P
Pobiega14d ago
What part is stumping you? Ie, exactly where are you facing difficulties
B
Buddy14d ago
$details
M
MODiX14d ago
When you ask a question, make sure you include as much detail as possible. Such as code, the issue you are facing, and what you expect the result to be. Upload code here https://paste.mod.gg/ (see $code for more information on how to paste your code)
A
Arrival13d ago
sorry guys I was afk actually I am stumping in prime number logic odd number part is quite easy but prime numbers are annoying me
A
Angius13d ago
Finding out if a number is prime or not is fairly simple, actually What characterizes a prime number?
A
Arrival13d ago
prime number are those which are divide by itself and 1
A
Angius13d ago
Yeah And if we invert that condition, they're numbers that cannot be divided by any other number besides 1 and itself Sounds to me like we can easily check that in a loop For low prime numbers, at least
A
Arrival13d ago
can you write me a statement ? just statement with syntax
A
Angius13d ago
Why don't you give it a shot yourself?
A
Arrival13d ago
Alright let me try
A
Arrival13d ago
No description
A
Arrival13d ago
@ZZZZZZZZZZZZZZZZZZZZZZZZZ thanks
Want results from more Discord servers?
Add your server
More Posts
IndexOutOfRange Leetcode helpHey, having an issue with my leetcode problem. I know that its supposed to be a bitwise XOR operatiovisual studio .net core ironPDFi have problem with export to pdf files. It's works perfectly( create a files and change keyword), bVisual Studio + WPF: "Could Not Load Assembly" despite dlls being available and reference correctThis has been driving me nuts for a day now. It's an intermittent error as had this working fine at how to export datas to json file from mysqlI have datas in mysql I want to move them to a json file. How can I do that?Licensing my programHi, i’m developing a Point Of Sale software and would like to find out possible solutions to manage ✅ Unhandled exception. Cannot print exception string because Exception.ToString() failed.justwhy this error always come in dotnet webapi application version ----- dotnet --version ✅ How to use Dapper with Query ParametersI work a lot with SQL databases such as MySQL, SQLite and PSQL and usually I write my Queries like t✅ transaction in transaction issueI have this error: `The connection is already in a transaction and cannot participate in another trHelp making login function c#Im currently trying to code a login function I have the registration my user is getting saved in thProblems with docker and my app imageI already posted a question that more or less manage to solve but now i have other problem, the thiAttempting to get value from different JSON files with variable keyHello o/ I am attempting to deserilize and obtain the value from a variety of JSON files that contaiHow to display only department fields associated with a selected department in student automationhi, I'm facing a challenge while working on the student automation system. After selecting the deparHelp with DiscordGameSDK in a C# project (no Unity)I am currently trying to develop a plugin for a Unity game. For this I created a C# project, where IMarshal.GetActiveObject("Word.Application") fall in exceptionI'm working on a `.NET Framework` console application, I have added the `Microsoft.Office.Interop.WMigrating to Microsoft.IdentityModel.JsonWebTokens .net6 => .net8Hi, I am migrating a project which uses Duende as identity server + Ocelot gateway from .NET 6 to .NProcess working set is twice as commited managed memoryHi! I have an ASP.NET Core 8 app running on Linux in Docker. It's memory usage is limited by 512M. Resource based authorization with IdentityHello, I have the following setup in my asp.net core project: A `Workspace` model that has a bunch o✅ is .net 8.0 is not compatibleHey hi guys I'm new to this group and .net I just started learning .net I don't have any experience Help with why code is returning this way.Hello, I'm a CS student learning C# for the first time and i'm having some confusion on why my code Named pipe connection over network error (The username or password is incorrect)When running a solution where one machine runs a server and a second machine runs a client connectin