About 1,950,638 results (5,409 milliseconds)

Print the first n prime numbers

https://groups.google.com/g/blockly/c/JoVK1hopKGk
Jun 14, 2023 ... Am Mi., 14. Juni 2023 um 21:52 Uhr schrieb Andrey Ermack <[email protected]>: I need help creating code to be able to print the first n prime ...

[ANN] primegen.go: Sieve of Atkin prime number generator

https://groups.google.com/g/golang-nuts/c/zRvkdfpeOY8
The C/C++ code will still be quicker, mainly because of no array bounds check for a couple of CPU clock cycles, but also because it is more efficient to use the ...

Week 4 Day 1, C Exercises (Optional Challenge Problems)

https://colab.research.google.com/github/jamcoders/syllabus-resources-2023/blob/main/week4/labs/w4d1c.ipynb
( 1 is only divisible by 1 , so it is not a prime.) Implement find_primes_up_to , which returns a list of all primes up to n . Recall that you can check whether ...

Fast Fizz Buzz program

https://groups.google.com/g/comp.lang.asm.x86/c/avLse_BYz1I
>> Write a program that prints the numbers from 1 to 100. But for ... > to handle this particular case, i.e. use a C program to generate an > unrolled ...

Basic Programming

https://sites.google.com/a/case.edu/hpcc/guides-and-training/helpful-references/programming/basic-programming--hpc
Check the C equivalent code for addition. cat add.c. output ... The program produces the count of prime numbers between lower bound and upper bound.

[9fans] Concurrency and message passing with Newsqueak

https://groups.google.com/g/comp.os.plan9/c/lREwq8_PUG4/m/BUQ0dfHtaXYJ
primes(num: int) { l : list of int; n := 2; for(i := 0; i < num; n++) { if(nofactor(n, l)) { l = n :: l; i++; sys->print("%d\n", n); } } }. -- Kris Maglione.

Newb to Javascript, learning to populate a spreadsheet...

https://groups.google.com/g/google-apps-script-community/c/cZGrxGcoyAY
I have found code examples for populating prime numbers on StackOverflow ... My target is the Print Primes Canvas in the same file. For whatever reason ...

01_control_statements_solutions.ipynb - Colab

https://colab.research.google.com/github/kks32-courses/ce311k/blob/main/notebooks/lectures/01_control_flow/01_control_statements_solutions.ipynb
Below is a program for finding prime numbers that uses a break statement. ... N = 50 # Check numbers up 50 for primes (excludes 50) # Loop over all ...

Learn_Python_in_2_hr.ipynb - Colab

https://colab.research.google.com/github/psrana/Learn-Python-in-2-hr/blob/main/Learn_Python_in_2_hr.ipynb
Code cell output actions. Enter a No: 45 Not Prime. spark Gemini. keyboard_arrow_down ... Assingment 5.3: WAP to add all prime numbers from 1 to n and n is given ...

Enhanced Primitive Support

https://groups.google.com/g/clojure/c/yMhQWVyRzBE
within Clojure). As a case in point, consider writing a naive recursive factorial function. (defn fact [n] (if (zero? n) ...

Break inside of for-select

https://groups.google.com/g/golang-nuts/c/s9w2gAlrpjk
> execution doesn't fall through the cases as in a traditional C/C++ > ... just print out the primes <= n. import ( "flag"; "strconv"; ) func main ...

02 Control statements.ipynb - Colab

https://colab.research.google.com/github/CambridgeEngineering/PartIA-Computing-Michaelmas/blob/main/02%20Control%20statements.ipynb
Below is a program for finding prime numbers that uses a break statement. ... N = 50 # Check numbers up 50 for primes (excludes 50) # Loop over all ...

1

https://groups.google.com/group/mgmcet_fe_2011-2012/attach/d6f106073fc2814c/question%20bank.doc?part=0.1
r1 and generate all prime numbers between r1 and r2. 5. Write a program to input data in an array carrying 25 elements. Compute the sum and. average. Then ...

mpz_probab_prime_p

https://groups.google.com/g/mpir-devel/c/_pp2WRgwrHk/m/0jJsAIn71s0J
This would be the function that you would use in a integer prime factorization ... In fact for large n values it would be faster to use more primes at sieve ...

STRANGE COMPILER ERROR PROSPERO FORTRAN CP/M-80

https://groups.google.com/g/comp.os.cpm/c/qzlFdIEgsno
FOR appears after Pass 1 without errors, Pass2 which gives me "Error C at address 1D5F" Continue Y/N?. This happens only if in the program there are arithmetic ...

USB polling rate

https://groups.google.com/g/psychopy-users/c/0B14e8MsQWg
... in _addRuntimeInfoToDisplayConfig\n self._createPsychopyCalibrationFile()\n', ... It is likely that the script does not have write permissions for the C ...

Project Euler Utils.ipynb - Colab

https://colab.research.google.com/github/norvig/pytudes/blob/main/ipynb/Project%20Euler%20Utils.ipynb
Iterate through the primes up to 2 million. Instantly check whether an integer up to 2 million is a prime. With a bit more computation, check if, say, a 12- ...

Manobal sir - Chapter 9: Nested for Loops

https://sites.google.com/view/manobal-sir/icse-class-9/chapter-9-nested-for-loops
Write a program to calculate and display the factorials of all the numbers between 'm' and 'n' (where m<n, m>0, n>0). [Hint: factorial of 5 means: 5!=5*4*3 ...

GE 2115 - COMPUTER PRACTICE LABORATORY – I

https://groups.google.com/group/psnasece/attach/9f2a2c1bd4dc9105/GE2115_SET3.pdf?part=0.4
(b) Create an excel sheet and apply the import export features. (c) Write a C program to generate first 50 prime numbers. 11. (a) Create a word document to ...

performnace and accuracy of big numbers

https://groups.google.com/a/dartlang.org/g/misc/c/VHYFncJuQQk/m/JYi_gEYfLs4J
In this test, js program completes in 558ms (in my Chrome), and dart runs ... Let's switch topic a bit. Consider the following etude in C sharp (see *):. print( ...