473,398 Members | 2,393 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Textbox and button

1
How can i generate prime numbers in textbox onclick of a button
Dec 3 '15 #1
1 788
mbizup
80 64KB
Is this an academic assignment (homework)?

To get started...

Research how to determine if a number is prime. There are several examples out there of code/algorithms that serve this purpose and do a good job of explaining the methods involved.

Once you have that part down, it's a matter of setting a range of numbers (since there are an infinite number of prime numbers), determining the primes and combining/formatting them as you want to see them displayed in your textbox.

If you run in to specific issues, post the work you have done so far and any specific questions letting us know exactly where you are getting stuck.
Dec 3 '15 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: DDK | last post by:
Question (using C# and ASP.NET), I have a textbox and a buttonClick on my asp.net page. I would like be able to hit the Enter button on the keyboard and have it do the same thing as the...
4
by: tshad | last post by:
I have 3 objects on my page (textbox,button and linkbutton) When I put something in my textbox and hit "enter", the page gets posted, but nothing happens. I don't go to either of the functions...
1
by: hledman | last post by:
Hello beginner here. I've been researching for awhile to find a way to enable a button when text is entered into a textbox (client side). I working with asp.net 2.0 C#. I've been trying to...
2
by: linuxpld | last post by:
Hi How can I force my cursor to go to the end of the text after pushing a button. Using System.Windows.Forms I have something like this: TextBox textBox; Button button;
3
by: Austin Phillips | last post by:
I have a form that has 2 text box for input and 2 buttons. Like so: Enter item: <textbox<button> Enter desc: <textbox<button> When I am in the item textbox and press enter I would like to...
3
by: kimiraikkonen | last post by:
Hi experts, I just want to ask a simple procedure of my simple form. My form has a input textbox and a button. I want this if you can help me: Application user types a command prompt command...
0
by: Piero | last post by:
Hi, i try to create a windows application with a textbox, button and datagrid. i will insert in a datagrid a textbox value by click a button. i create a datatable and connect it to a datagrid but...
1
by: Forumtroll | last post by:
I have a Web User Control that parses an XML file and renders a Form based on the XML. The problem is that I create a button on the bottom of the form that will fire off a subscribeable event, but...
5
by: Benjamin Irelan | last post by:
I need to write an HTML page that uses an input text box to ask the viewer for a phrase. The page should also contain a button. When the button is pressed, the page should display the input phrase 10...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.